RadioButtonProperty.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <UserControl x:Class="ComPDFKit.Controls.PDFControl.RadioButtonProperty"
  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.Controls.PDFControl" xmlns:cpdfcommon="clr-namespace:ComPDFKit.Controls.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="400" d:DesignWidth="300"
  9. Loaded="UserControl_Loaded"
  10. Unloaded="UserControl_Unloaded"
  11. >
  12. <UserControl.Resources>
  13. <ResourceDictionary>
  14. <ResourceDictionary.MergedDictionaries>
  15. <ResourceDictionary Source="../../Asset/Styles/TabControlStyle.xaml"></ResourceDictionary>
  16. <ResourceDictionary Source="../../Asset/Styles/TabItemStyle.xaml"></ResourceDictionary>
  17. <ResourceDictionary Source="../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  18. </ResourceDictionary.MergedDictionaries>
  19. <cpdfcommon:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter"></cpdfcommon:PropertyPanelResourceConverter>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="40"/>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <Border BorderThickness="0" BorderBrush="#1A000000">
  28. <Grid Height="40" Background="White" >
  29. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Rdo}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  30. </Grid>
  31. </Border>
  32. <TabControl Grid.Row="1" Style="{DynamicResource TabControlStyle1}" BorderThickness="0">
  33. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_General}">
  34. <Grid>
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition Width="16"/>
  37. <ColumnDefinition Width="*"/>
  38. <ColumnDefinition Width="16"/>
  39. </Grid.ColumnDefinitions>
  40. <Grid.RowDefinitions>
  41. <RowDefinition Height="auto"/>
  42. <RowDefinition Height="*"/>
  43. </Grid.RowDefinitions>
  44. <Grid Grid.ColumnSpan="3">
  45. <StackPanel x:Name="WarningPanel" Orientation="Horizontal" Background="#1EFF0000" Height="44">
  46. <Path Fill="Black" Margin="8,10,8,0" VerticalAlignment="Top" Data="M1.77832 10.1978H10.2163C11.022 10.1978 11.5269 9.61768 11.5269 8.88721C11.5269 8.66699 11.4731 8.44678 11.355 8.24268L7.12793 0.696289C6.88623 0.26123 6.44043 0.0302734 6 0.0302734C5.5542 0.0302734 5.1084 0.26123 4.8667 0.696289L0.64502 8.24805C0.532227 8.45215 0.467773 8.66699 0.467773 8.88721C0.467773 9.61768 0.972656 10.1978 1.77832 10.1978ZM6 6.60986C5.7207 6.60986 5.57031 6.44873 5.56494 6.16406L5.48975 3.24219C5.48438 2.95752 5.69385 2.75342 5.99463 2.75342C6.29004 2.75342 6.51025 2.96289 6.50488 3.24756L6.42969 6.16406C6.42432 6.4541 6.26855 6.60986 6 6.60986ZM6 8.40918C5.68311 8.40918 5.40381 8.15137 5.40381 7.83447C5.40381 7.51221 5.67773 7.25439 6 7.25439C6.32764 7.25439 6.60156 7.50684 6.60156 7.83447C6.60156 8.15674 6.32227 8.40918 6 8.40918Z"/>
  47. <TextBlock Margin="0,8,8,8" VerticalAlignment="Center" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Warn_SingleRdo}" Width="224" TextWrapping="Wrap"/>
  48. </StackPanel>
  49. </Grid>
  50. <StackPanel Grid.Column="1" Grid.Row="1">
  51. <StackPanel >
  52. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Name}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  53. <TextBox x:Name="FieldNameText" Height="32" Margin="0,8,0,0" TextChanged="FieldNameText_TextChanged"/>
  54. </StackPanel>
  55. <StackPanel >
  56. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Visibility}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  57. <ComboBox x:Name="FormFieldCmb" Height="32" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FormFieldCmb_SelectionChanged">
  58. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_Visible}"/>
  59. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_Hidden}"/>
  60. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_NoPrint}"/>
  61. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_Print}"/>
  62. </ComboBox>
  63. </StackPanel>
  64. </StackPanel>
  65. <StackPanel Grid.Row="1" Grid.ColumnSpan="3" Orientation="Horizontal" Background="#E2E3E6" VerticalAlignment="Bottom">
  66. <Path Fill="Black" Margin="8,10,8,0" VerticalAlignment="Top" Data="M6 11.6006C3.0083 11.6006 0.521484 9.11377 0.521484 6.12207C0.521484 3.125 3.00293 0.643555 5.99463 0.643555C8.9917 0.643555 11.4785 3.125 11.4785 6.12207C11.4785 9.11377 8.99707 11.6006 6 11.6006ZM5.94629 4.16162C6.34912 4.16162 6.66602 3.83936 6.66602 3.43115C6.66602 3.02295 6.34912 2.70068 5.94629 2.70068C5.54346 2.70068 5.22119 3.02295 5.22119 3.43115C5.22119 3.83936 5.54346 4.16162 5.94629 4.16162ZM5.02783 9.17822H7.27832C7.50928 9.17822 7.68652 9.01172 7.68652 8.78076C7.68652 8.56592 7.50928 8.38867 7.27832 8.38867H6.59619V5.57959C6.59619 5.27881 6.4458 5.07471 6.16113 5.07471H5.11914C4.89355 5.07471 4.71631 5.25195 4.71631 5.4668C4.71631 5.69775 4.89355 5.86426 5.11914 5.86426H5.70996V8.38867H5.02783C4.79688 8.38867 4.61963 8.56592 4.61963 8.78076C4.61963 9.01172 4.79688 9.17822 5.02783 9.17822Z"/>
  67. <TextBlock Margin="0,8,8,8" VerticalAlignment="Center" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Tip_SingleRdo}" Width="224" TextWrapping="Wrap"/>
  68. </StackPanel>
  69. </Grid>
  70. </TabItem>
  71. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Appearance}">
  72. <Grid>
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition Width="16"/>
  75. <ColumnDefinition Width="*"/>
  76. <ColumnDefinition Width="16"/>
  77. </Grid.ColumnDefinitions>
  78. <StackPanel Grid.Column="1">
  79. <StackPanel>
  80. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_StrokeColor}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  81. <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BorderColorPickerControl" ColorChanged="BorderColorPickerControl_ColorChanged"/>
  82. </StackPanel>
  83. <StackPanel>
  84. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_BgColor}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  85. <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BackgroundColorPickerControl" ColorChanged="BackgroundColorPickerControl_ColorChanged"/>
  86. </StackPanel>
  87. </StackPanel>
  88. </Grid>
  89. </TabItem>
  90. <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Preferences}">
  91. <Grid>
  92. <Grid.ColumnDefinitions>
  93. <ColumnDefinition Width="16"/>
  94. <ColumnDefinition Width="*"/>
  95. <ColumnDefinition Width="16"/>
  96. </Grid.ColumnDefinitions>
  97. <StackPanel Grid.Column="1">
  98. <StackPanel >
  99. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Check_Style}" FontSize="14" FontFamily="Microsoft YaHei" FontWeight="Bold"/>
  100. <ComboBox x:Name="RadioButtonStyleCmb" Height="32" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="RadioButtonStyleCmb_SelectionChanged">
  101. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Check}"/>
  102. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Circle}"/>
  103. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Cross}"/>
  104. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Diamond}"/>
  105. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Square}"/>
  106. <ComboBoxItem Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Star}"/>
  107. </ComboBox>
  108. </StackPanel>
  109. <StackPanel >
  110. <CheckBox x:Name="chkSelected" Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Style_Default}" FontSize="14" VerticalContentAlignment="Center" FontFamily="Microsoft YaHei" FontWeight="Bold" Margin="0 14 0 0" Checked="chkSelected_Checked" Unchecked="chkSelected_Unchecked"/>
  111. </StackPanel>
  112. </StackPanel>
  113. </Grid>
  114. </TabItem>
  115. </TabControl>
  116. </Grid>
  117. </UserControl>