12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <UserControl x:Class="Compdfkit_Tools.Edit.CPDFTextStyleUI"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Compdfkit_Tools.Edit"
- mc:Ignorable="d"
- d:DesignHeight="800" d:DesignWidth="260">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <Border>
- <TextBlock VerticalAlignment="Center" Margin="0,10,10,0" FontSize="14" Foreground="#43474D">Font Style:</TextBlock>
- </Border>
-
- <Grid Grid.Row="1" Margin="0,10,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
-
- <ComboBox Grid.ColumnSpan="2" Name="FontNameComboBox" Width="228" Height="28" FontSize="14" SelectionChanged="FontNameComboBox_SelectionChanged" BorderThickness="1"
- VerticalContentAlignment="Center" Foreground="#43474D" Style="{StaticResource ComboBoxStyle1}" >
- </ComboBox>
- <ComboBox Name="FontStyleBox" Width="148" Height="28" Grid.Row="1" Margin="0,8,0,0" BorderThickness="1" Foreground="#43474D" FontSize="14"
- SelectionChanged="FontStyleBox_SelectionChanged" Style="{StaticResource ComboBoxStyle1}" >
- <ComboBoxItem IsSelected="True">Regular</ComboBoxItem>
- <ComboBoxItem>Bold</ComboBoxItem>
- <ComboBoxItem>Italic</ComboBoxItem>
- <ComboBoxItem>Bold Italic</ComboBoxItem>
- </ComboBox>
- <Grid Grid.Row="1" Grid.Column="1" Margin="8,8,0,0">
- <ComboBox Name="FontSizeComboBox" Width="72" Height="28" BorderThickness="1" MaxDropDownHeight="200" Foreground="#43474D" FontSize="14"
- SelectionChanged="FontSizeComboBox_SelectionChanged" Style="{StaticResource ComboBoxStyle1}" >
- <ComboBoxItem>6</ComboBoxItem>
- <ComboBoxItem>8</ComboBoxItem>
- <ComboBoxItem>9</ComboBoxItem>
- <ComboBoxItem>10</ComboBoxItem>
- <ComboBoxItem>12</ComboBoxItem>
- <ComboBoxItem>14</ComboBoxItem>
- <ComboBoxItem>18</ComboBoxItem>
- <ComboBoxItem>20</ComboBoxItem>
- <ComboBoxItem>22</ComboBoxItem>
- <ComboBoxItem>24</ComboBoxItem>
- <ComboBoxItem>26</ComboBoxItem>
- <ComboBoxItem>28</ComboBoxItem>
- <ComboBoxItem>32</ComboBoxItem>
- <ComboBoxItem>36</ComboBoxItem>
- <ComboBoxItem>48</ComboBoxItem>
- <ComboBoxItem>72</ComboBoxItem>
- </ComboBox>
- <TextBox Name="FontSizeTextBox" IsHitTestVisible="False" Width="72" Height="28" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" BorderThickness="1"
- IsReadOnly="True" Padding="0,0,15,0" FontSize="14"></TextBox>
- <Path Fill="#43474D" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0" IsHitTestVisible="False">
- <Path.Data>
- M0.5 0.510248L4.5041 5.5L8.5 0.5L0.5 0.510248Z
- </Path.Data>
- </Path>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|