RadioFormProperty.xaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <Window x:Class="ComPDFKitDemo.WidgetForm.RadioFormProperty"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ComPDFKitDemo" xmlns:ColorPicker="clr-namespace:ColorPickerLib.Controls;assembly=ColorPickerLib"
  7. mc:Ignorable="d"
  8. Height="560" Width="720" WindowStyle="SingleBorderWindow" ResizeMode="NoResize">
  9. <Window.Resources>
  10. <ResourceDictionary Source="/ColorPickerLib;component/Themes/LightBrushs.xaml" />
  11. </Window.Resources>
  12. <Grid>
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="auto"></ColumnDefinition>
  15. <ColumnDefinition Width="*"></ColumnDefinition>
  16. </Grid.ColumnDefinitions>
  17. <StackPanel Background="#F3F5FA" Name="FormStack">
  18. <TextBlock FontSize="16" Padding="25,20,25,10" Background="#D1E2F2" MouseLeftButtonDown="NavClick" Tag="Regular"> General</TextBlock>
  19. <TextBlock FontSize="16" Padding="25,10,25,10" MouseLeftButtonDown="NavClick" Tag="Appearance"> Appearance</TextBlock>
  20. <TextBlock FontSize="16" Padding="25,10,25,10" MouseLeftButtonDown="NavClick" Tag="Option" Name="OptinTab"> Options</TextBlock>
  21. </StackPanel>
  22. <Grid Grid.Column="1" Margin="20,10,0,0" >
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="auto"></RowDefinition>
  25. <RowDefinition Height="auto"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <StackPanel Name="RegularPanel">
  28. <TextBlock FontSize="14">Name:</TextBlock>
  29. <TextBox Name="GroupNameText" Margin="0,10,0,0" Width="250" Height="30" HorizontalAlignment="Left"
  30. TextChanged="GroupNameText_TextChanged"></TextBox>
  31. <TextBlock FontSize="14" Margin="0,10,0,0">Common Properties:</TextBlock>
  32. <TextBlock Foreground="Gray" Margin="0,10,0,0">Form Field</TextBlock>
  33. <ComboBox Name="FormFieldBox" Height="25" Width="200" HorizontalAlignment="Left" Margin="0,10,0,0"
  34. VerticalContentAlignment="Center" SelectionChanged="FormFieldBox_SelectionChanged">
  35. <ComboBoxItem Tag="0">Visible</ComboBoxItem>
  36. <ComboBoxItem Tag="1">Hidden</ComboBoxItem>
  37. <ComboBoxItem Tag="2">Visible but doesn't print</ComboBoxItem>
  38. <ComboBoxItem Tag="3">Hidden but printable</ComboBoxItem>
  39. </ComboBox>
  40. <CheckBox Name="ReadOnlyBox" Margin="0,10,0,0" Checked="ReadOnlyBox_Checked" Unchecked="ReadOnlyBox_Checked">Read Only</CheckBox>
  41. </StackPanel>
  42. <Grid Name="AppearancePanel" Visibility="Collapsed">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="*"></ColumnDefinition>
  45. <ColumnDefinition Width="*"></ColumnDefinition>
  46. </Grid.ColumnDefinitions>
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="auto"></RowDefinition>
  49. <RowDefinition Height="auto"></RowDefinition>
  50. <RowDefinition Height="auto"></RowDefinition>
  51. <RowDefinition Height="auto"></RowDefinition>
  52. <RowDefinition Height="auto"></RowDefinition>
  53. <RowDefinition Height="auto"></RowDefinition>
  54. <RowDefinition Height="auto"></RowDefinition>
  55. <RowDefinition Height="auto"></RowDefinition>
  56. </Grid.RowDefinitions>
  57. <TextBlock Margin="0,0,0,15" FontSize="14">Borders and Colors</TextBlock>
  58. <TextBlock Grid.Row="1" Foreground="Gray">Border Color</TextBlock>
  59. <TextBlock Grid.Row="1" Foreground="Gray" Grid.Column="1">Line Thickness</TextBlock>
  60. <ColorPicker:ColorPicker Name="BorderColorPicker" Grid.Row="2" Width="200" HorizontalAlignment="Left"
  61. Margin="0,10,0,0" SelectedColorChanged="BorderColorPicker_SelectedColorChanged"></ColorPicker:ColorPicker>
  62. <ComboBox Name="ThicknessText" Grid.Row="2" Grid.Column="1" Height="25" Width="200" HorizontalAlignment="Left"
  63. Margin="0,10,0,0" VerticalContentAlignment="Center" SelectionChanged="ThicknessText_SelectionChanged">
  64. <ComboBoxItem Content="Thin"></ComboBoxItem>
  65. <ComboBoxItem Content="Medium"></ComboBoxItem>
  66. <ComboBoxItem Content="Thick"></ComboBoxItem>
  67. </ComboBox>
  68. <TextBlock Grid.Row="3" Foreground="Gray" Margin="0,10,0,0">Fill Color</TextBlock>
  69. <TextBlock Grid.Row="3" Foreground="Gray" Grid.Column="1" Margin="0,10,0,0">Line Style</TextBlock>
  70. <ColorPicker:ColorPicker Name="FillColorPicker" Grid.Row="4" Width="200" HorizontalAlignment="Left"
  71. Margin="0,10,0,0" SelectedColorChanged="FillColorPicker_SelectedColorChanged"></ColorPicker:ColorPicker>
  72. <ComboBox Name="LineStyleBox" Grid.Row="4" Grid.Column="1" Height="25" Width="200" HorizontalAlignment="Left"
  73. Margin="0,10,0,0" VerticalContentAlignment="Center" SelectionChanged="LineStyleBox_SelectionChanged">
  74. <ComboBoxItem>Solid</ComboBoxItem>
  75. <ComboBoxItem>Dash</ComboBoxItem>
  76. </ComboBox>
  77. <TextBlock Grid.Row="5" Foreground="Gray" Margin="0,10,0,0">Text Color</TextBlock>
  78. <ColorPicker:ColorPicker Name="FontColorPicker" Grid.Row="6" Width="200" HorizontalAlignment="Left"
  79. Margin="0,10,0,0" SelectedColorChanged="FontColorPicker_SelectedColorChanged"></ColorPicker:ColorPicker>
  80. </Grid>
  81. <Grid Name="OptionPanel" Visibility="Collapsed">
  82. <Grid Name="OptionRadio">
  83. <StackPanel>
  84. <TextBlock Margin="0,0,0,15" FontSize="14">Button Style</TextBlock>
  85. <ComboBox Name="RadioStyleBox" Height="25" Width="200" HorizontalAlignment="Left" Margin="0,10,0,0"
  86. VerticalContentAlignment="Center" SelectionChanged="RadioStyleBox_SelectionChanged">
  87. <ComboBoxItem Tag="0">Checkmark</ComboBoxItem>
  88. <ComboBoxItem Tag="1">Circle</ComboBoxItem>
  89. <ComboBoxItem Tag="2">Cross</ComboBoxItem>
  90. <ComboBoxItem Tag="3">Diamond</ComboBoxItem>
  91. <ComboBoxItem Tag="4">Square</ComboBoxItem>
  92. <ComboBoxItem Tag="5">Star</ComboBoxItem>
  93. </ComboBox>
  94. </StackPanel>
  95. </Grid>
  96. </Grid>
  97. <CheckBox Grid.Row="1" Name="LockBox" Margin="0,10,0,0" Checked="LockBox_Checked" Unchecked="LockBox_Checked">Locked</CheckBox>
  98. </Grid>
  99. </Grid>
  100. </Window>