CPDFTextStyleUI.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <UserControl x:Class="Compdfkit_Tools.Edit.CPDFTextStyleUI"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.Edit"
  7. mc:Ignorable="d"
  8. d:DesignHeight="800" d:DesignWidth="260">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  13. </ResourceDictionary.MergedDictionaries>
  14. </ResourceDictionary>
  15. </UserControl.Resources>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="auto"></RowDefinition>
  19. <RowDefinition Height="*"></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <Border>
  22. <TextBlock VerticalAlignment="Center" Margin="0,10,10,0" FontSize="14" Foreground="#43474D">Font Style:</TextBlock>
  23. </Border>
  24. <Grid Grid.Row="1" Margin="0,10,0,0">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="auto"></RowDefinition>
  27. <RowDefinition Height="auto"></RowDefinition>
  28. </Grid.RowDefinitions>
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="auto"></ColumnDefinition>
  31. <ColumnDefinition Width="*"></ColumnDefinition>
  32. </Grid.ColumnDefinitions>
  33. <ComboBox Grid.ColumnSpan="2" Name="FontNameComboBox" Width="228" Height="28" FontSize="14" SelectionChanged="FontNameComboBox_SelectionChanged" BorderThickness="1"
  34. VerticalContentAlignment="Center" Foreground="#43474D" Style="{StaticResource ComboBoxStyle1}" >
  35. </ComboBox>
  36. <ComboBox Name="FontStyleBox" Width="148" Height="28" Grid.Row="1" Margin="0,8,0,0" BorderThickness="1" Foreground="#43474D" FontSize="14"
  37. SelectionChanged="FontStyleBox_SelectionChanged" Style="{StaticResource ComboBoxStyle1}" >
  38. <ComboBoxItem IsSelected="True">Regular</ComboBoxItem>
  39. <ComboBoxItem>Bold</ComboBoxItem>
  40. <ComboBoxItem>Italic</ComboBoxItem>
  41. <ComboBoxItem>Bold Italic</ComboBoxItem>
  42. </ComboBox>
  43. <Grid Grid.Row="1" Grid.Column="1" Margin="8,8,0,0">
  44. <ComboBox Name="FontSizeComboBox" Width="72" Height="28" BorderThickness="1" MaxDropDownHeight="200" Foreground="#43474D" FontSize="14"
  45. SelectionChanged="FontSizeComboBox_SelectionChanged" Style="{StaticResource ComboBoxStyle1}" >
  46. <ComboBoxItem>6</ComboBoxItem>
  47. <ComboBoxItem>8</ComboBoxItem>
  48. <ComboBoxItem>9</ComboBoxItem>
  49. <ComboBoxItem>10</ComboBoxItem>
  50. <ComboBoxItem>12</ComboBoxItem>
  51. <ComboBoxItem>14</ComboBoxItem>
  52. <ComboBoxItem>18</ComboBoxItem>
  53. <ComboBoxItem>20</ComboBoxItem>
  54. <ComboBoxItem>22</ComboBoxItem>
  55. <ComboBoxItem>24</ComboBoxItem>
  56. <ComboBoxItem>26</ComboBoxItem>
  57. <ComboBoxItem>28</ComboBoxItem>
  58. <ComboBoxItem>32</ComboBoxItem>
  59. <ComboBoxItem>36</ComboBoxItem>
  60. <ComboBoxItem>48</ComboBoxItem>
  61. <ComboBoxItem>72</ComboBoxItem>
  62. </ComboBox>
  63. <TextBox Name="FontSizeTextBox" IsHitTestVisible="False" Width="72" Height="28" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" BorderThickness="1"
  64. IsReadOnly="True" Padding="0,0,15,0" FontSize="14"></TextBox>
  65. <Path Fill="#43474D" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0" IsHitTestVisible="False">
  66. <Path.Data>
  67. M0.5 0.510248L4.5041 5.5L8.5 0.5L0.5 0.510248Z
  68. </Path.Data>
  69. </Path>
  70. </Grid>
  71. </Grid>
  72. </Grid>
  73. </UserControl>