CheckBoxProperty.xaml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.CheckBoxProperty"
  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:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  7. mc:Ignorable="d"
  8. Loaded="UserControl_Loaded"
  9. Unloaded="UserControl_Unloaded">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="../../Asset/Styles/TabControlStyle.xaml"></ResourceDictionary>
  14. <ResourceDictionary Source="../../Asset/Styles/TabItemStyle.xaml"></ResourceDictionary>
  15. <ResourceDictionary Source="../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  16. </ResourceDictionary.MergedDictionaries>
  17. </ResourceDictionary>
  18. </UserControl.Resources>
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="40"/>
  22. <RowDefinition Height="*"/>
  23. </Grid.RowDefinitions>
  24. <Border BorderThickness="0" BorderBrush="#1A000000">
  25. <Grid Height="40" Background="White" >
  26. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Check Box" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  27. </Grid>
  28. </Border>
  29. <TabControl Grid.Row="1" Style="{DynamicResource TabControlStyle1}" BorderThickness="0">
  30. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="General">
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="16"/>
  34. <ColumnDefinition Width="*"/>
  35. <ColumnDefinition Width="16"/>
  36. </Grid.ColumnDefinitions>
  37. <StackPanel Grid.Column="1">
  38. <StackPanel >
  39. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  40. <TextBox x:Name="FieldNameText" Margin="0,8,0,0" TextChanged="FieldNameText_TextChanged"/>
  41. </StackPanel>
  42. <StackPanel >
  43. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Form Field" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  44. <ComboBox x:Name="FormFieldCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FormFieldCombox_SelectionChanged">
  45. <ComboBoxItem Content="Visible"/>
  46. <ComboBoxItem Content="Hidden"/>
  47. <ComboBoxItem Content="Visible but doesn't print"/>
  48. <ComboBoxItem Content="Hidden but printable"/>
  49. </ComboBox>
  50. </StackPanel>
  51. </StackPanel>
  52. </Grid>
  53. </TabItem>
  54. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="Appearance">
  55. <Grid>
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition Width="16"/>
  58. <ColumnDefinition Width="*"/>
  59. <ColumnDefinition Width="16"/>
  60. </Grid.ColumnDefinitions>
  61. <StackPanel Grid.Column="1">
  62. <StackPanel>
  63. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Border Color" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  64. <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BorderColorPickerControl" ColorChanged="BorderColorPickerControl_ColorChanged"/>
  65. </StackPanel>
  66. <StackPanel>
  67. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Background Color" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  68. <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BackgroundColorPickerControl" ColorChanged="BackgroundColorPickerControl_ColorChanged"/>
  69. </StackPanel>
  70. </StackPanel>
  71. </Grid>
  72. </TabItem>
  73. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="Preferences">
  74. <Grid>
  75. <Grid.ColumnDefinitions>
  76. <ColumnDefinition Width="16"/>
  77. <ColumnDefinition Width="*"/>
  78. <ColumnDefinition Width="16"/>
  79. </Grid.ColumnDefinitions>
  80. <StackPanel Grid.Column="1">
  81. <StackPanel >
  82. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Button Style" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  83. <ComboBox x:Name="CheckButtonStyleCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="CheckButtonStyleCombox_SelectionChanged">
  84. <ComboBoxItem Content="Check"/>
  85. <ComboBoxItem Content="Circle"/>
  86. <ComboBoxItem Content="Cross"/>
  87. <ComboBoxItem Content="Diamond"/>
  88. <ComboBoxItem Content="Square"/>
  89. <ComboBoxItem Content="Star"/>
  90. </ComboBox>
  91. </StackPanel>
  92. <StackPanel >
  93. <CheckBox x:Name="chkSelected" Content="Selected by default" FontSize="14" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="Bold" Margin="0 14 0 0" Checked="chkSelected_Checked" Unchecked="chkSelected_Unchecked"/>
  94. </StackPanel>
  95. </StackPanel>
  96. </Grid>
  97. </TabItem>
  98. </TabControl>
  99. </Grid>
  100. </UserControl>