CPDFTextStyleUI.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="450" d:DesignWidth="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="auto"></RowDefinition>
  12. <RowDefinition Height="*"></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <Border>
  15. <TextBlock VerticalAlignment="Center" Margin="0,10,10,0" FontSize="14" Foreground="#43474D">Text:</TextBlock>
  16. </Border>
  17. <Grid Grid.Row="1" Margin="0,10,0,0">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"></RowDefinition>
  20. <RowDefinition Height="auto"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="auto"></ColumnDefinition>
  24. <ColumnDefinition Width="*"></ColumnDefinition>
  25. </Grid.ColumnDefinitions>
  26. <ComboBox Grid.ColumnSpan="2" Name="FontNameComboBox" Width="228" Height="28" FontSize="14" SelectionChanged="FontNameComboBox_SelectionChanged" BorderThickness="0"
  27. VerticalContentAlignment="Center" Foreground="#43474D">
  28. <ComboBoxItem Content="Courier"></ComboBoxItem>
  29. <ComboBoxItem Content="Helvetica"></ComboBoxItem>
  30. <ComboBoxItem Content="Times"></ComboBoxItem>
  31. </ComboBox>
  32. <ComboBox Name="FontStyleBox" Width="148" Height="28" Grid.Row="1" Margin="0,8,0,0" BorderThickness="0" Foreground="#43474D" FontSize="14"
  33. SelectionChanged="FontStyleBox_SelectionChanged">
  34. <ComboBoxItem IsSelected="True">Regular</ComboBoxItem>
  35. <ComboBoxItem>Bold</ComboBoxItem>
  36. <ComboBoxItem>Italic</ComboBoxItem>
  37. <ComboBoxItem>Bold Italic</ComboBoxItem>
  38. </ComboBox>
  39. <Grid Grid.Row="1" Grid.Column="1" Margin="8,8,0,0">
  40. <ComboBox Name="FontSizeComboBox" Width="72" Height="28" BorderThickness="0" MaxDropDownHeight="200" Foreground="#43474D" FontSize="14"
  41. SelectionChanged="FontSizeComboBox_SelectionChanged">
  42. <ComboBoxItem>6</ComboBoxItem>
  43. <ComboBoxItem>8</ComboBoxItem>
  44. <ComboBoxItem>9</ComboBoxItem>
  45. <ComboBoxItem>10</ComboBoxItem>
  46. <ComboBoxItem>12</ComboBoxItem>
  47. <ComboBoxItem>14</ComboBoxItem>
  48. <ComboBoxItem>18</ComboBoxItem>
  49. <ComboBoxItem>20</ComboBoxItem>
  50. <ComboBoxItem>22</ComboBoxItem>
  51. <ComboBoxItem>24</ComboBoxItem>
  52. <ComboBoxItem>26</ComboBoxItem>
  53. <ComboBoxItem>28</ComboBoxItem>
  54. <ComboBoxItem>32</ComboBoxItem>
  55. <ComboBoxItem>36</ComboBoxItem>
  56. <ComboBoxItem>48</ComboBoxItem>
  57. <ComboBoxItem>72</ComboBoxItem>
  58. </ComboBox>
  59. <TextBox Name="FontSizeTextBox" IsHitTestVisible="False" Width="72" Height="28" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" BorderThickness="0"
  60. IsReadOnly="True" Background="#ECECEC" Padding="0,0,15,0" FontSize="14"></TextBox>
  61. <Path Fill="#43474D" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0" IsHitTestVisible="False">
  62. <Path.Data>
  63. M0.5 0.510248L4.5041 5.5L8.5 0.5L0.5 0.510248Z
  64. </Path.Data>
  65. </Path>
  66. </Grid>
  67. </Grid>
  68. </Grid>
  69. </UserControl>