SettingsDialog.xaml 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.SettingsDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:compositecontrol="clr-namespace:PDF_Master.CustomControl.CompositeControl"
  6. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:dataconvert="clr-namespace:PDF_Master.DataConvert"
  9. xmlns:dialog="clr-namespace:PDF_Master.ViewModels.Dialog"
  10. xmlns:local="clr-namespace:PDF_Master.Views.Dialog"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. Width="700"
  14. Height="600"
  15. d:DataContext="{d:DesignInstance Type=dialog:SettingsDialogViewModel}"
  16. d:DesignHeight="800"
  17. d:DesignWidth="700"
  18. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  19. prism:ViewModelLocator.AutoWireViewModel="True"
  20. mc:Ignorable="d">
  21. <UserControl.Resources>
  22. <ResourceDictionary>
  23. <ResourceDictionary.MergedDictionaries>
  24. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/RadioButtonStyle.xaml" />
  25. </ResourceDictionary.MergedDictionaries>
  26. <dataconvert:BoolToBrushConvert x:Key="BoolToBrushConvert" />
  27. <dataconvert:BoolToVisible x:Key="BoolToVisible" />
  28. <dataconvert:UnVisivleConvert x:Key="UnvisibleConvert" />
  29. <PathGeometry x:Key="Ic_GeneralButtonPath" Figures="M7.66072 0L7.55655 0.00779096C7.28392 0.0488956 7.05692 0.249053 6.98638 0.522415L6.43929 2.63786L6.31071 2.69143L4.42927 1.58159C4.1557 1.42025 3.80763 1.46444 3.58306 1.68902L1.68902 3.58306L1.61331 3.67268C1.45661 3.89349 1.44042 4.1899 1.58159 4.42927L2.69143 6.31071L2.63786 6.43929L0.522415 6.98638C0.214883 7.06574 0 7.34311 0 7.66072V10.3393L0.00778641 10.4434C0.0488673 10.716 0.248912 10.9429 0.522164 11.0136L2.63786 11.5607L2.69143 11.6882L1.58159 13.5707C1.42025 13.8443 1.46444 14.1924 1.68902 14.4169L3.58306 16.311L3.67268 16.3867C3.89349 16.5434 4.1899 16.5596 4.42927 16.4184L6.31071 15.3075L6.43821 15.3611L6.98644 17.4778C7.06589 17.7852 7.3432 18 7.66072 18H10.3393L10.4434 17.9922C10.7159 17.9512 10.9428 17.7512 11.0135 17.4781L11.5607 15.3611L11.6882 15.3075L13.5707 16.4184C13.8443 16.5797 14.1924 16.5356 14.4169 16.311L16.311 14.4169L16.3867 14.3273C16.5434 14.1065 16.5596 13.8101 16.4184 13.5707L15.3075 11.6882L15.3611 11.5607L17.4781 11.0135C17.7854 10.934 18 10.6567 18 10.3393V7.66072L17.9922 7.55658C17.9511 7.28402 17.7511 7.05706 17.4778 6.98644L15.3611 6.43821L15.3075 6.31071L16.4184 4.42927C16.5797 4.1557 16.5356 3.80763 16.311 3.58306L14.4169 1.68902L14.3273 1.61331C14.1065 1.45661 13.8101 1.44042 13.5707 1.58159L11.6882 2.69143L11.5596 2.63786L11.0136 0.522259C10.9342 0.214804 10.6568 0 10.3393 0H7.66072ZM8.19954 1.39291H9.79918L10.3025 3.33775C10.3613 3.5652 10.5309 3.74765 10.7534 3.82299C10.982 3.90039 11.2049 3.9929 11.4208 4.09981L11.5291 4.14256C11.7135 4.19809 11.9148 4.17517 12.0836 4.07557L13.8128 3.0547L14.9442 4.18612L13.9244 5.91632C13.8049 6.11897 13.7957 6.36826 13.9001 6.5791C14.0071 6.79504 14.0996 7.01795 14.177 7.24655L14.2156 7.33853C14.3054 7.51531 14.4673 7.64709 14.6623 7.69748L16.607 8.1997V9.79934L14.6617 10.3038C14.4344 10.3626 14.252 10.5321 14.1766 10.7545C14.0993 10.9828 14.0069 11.2054 13.9001 11.421L13.8574 11.5292C13.8019 11.7136 13.8248 11.9149 13.9244 12.0838L14.9442 13.8129L13.8128 14.9443L12.0836 13.9245C11.881 13.805 11.6317 13.7959 11.4208 13.9003C11.2052 14.0071 10.9826 14.0995 10.7543 14.1768L10.6624 14.2155C10.4858 14.3052 10.354 14.467 10.3036 14.6619L9.79918 16.6072H8.19954L7.69733 14.6625C7.63853 14.435 7.46897 14.2525 7.2464 14.1771C7.01779 14.0997 6.79488 14.0072 6.57894 13.9003L6.47071 13.8575C6.2863 13.802 6.08504 13.8249 5.91616 13.9245L4.18597 14.9443L3.05454 13.8129L4.07542 12.0838C4.19493 11.8811 4.20404 11.6318 4.09965 11.421C3.99274 11.2051 3.90023 10.9822 3.82283 10.7536L3.78416 10.6616C3.69441 10.4848 3.53246 10.353 3.33745 10.3026L1.39275 9.79934V8.1997L3.33684 7.69862C3.5645 7.63987 3.74715 7.47022 3.82251 7.2475C3.89998 7.01857 3.99259 6.79534 4.09965 6.5791L4.1424 6.47087C4.19794 6.28646 4.17501 6.0852 4.07542 5.91632L3.05454 4.18612L4.18597 3.0547L5.91616 4.07557C6.11882 4.19508 6.3681 4.2042 6.57894 4.09981C6.79518 3.99275 7.01841 3.90013 7.24734 3.82267L7.33938 3.78399C7.51627 3.69421 7.64811 3.53214 7.69846 3.337L8.19954 1.39291ZM8.9999 5.89291C7.28387 5.89291 5.89275 7.28402 5.89275 9.00005C5.89275 10.7161 7.28387 12.1072 8.9999 12.1072C10.7159 12.1072 12.107 10.7161 12.107 9.00005C12.107 7.28402 10.7159 5.89291 8.9999 5.89291ZM8.99972 7.28578C9.9465 7.28578 10.714 8.0533 10.714 9.00007C10.714 9.94684 9.9465 10.7144 8.99972 10.7144C8.05295 10.7144 7.28544 9.94684 7.28544 9.00007C7.28544 8.0533 8.05295 7.28578 8.99972 7.28578Z" />
  30. <PathGeometry x:Key="Ic_DisplayButtonPath" Figures="M18.998 9.99902C18.998 14.9132 14.922 18.998 9.99902 18.998C5.08485 18.998 1 14.9132 1 9.99902C1 5.07603 5.09367 1 9.99902 1C14.9308 1 18.998 5.07603 18.998 9.99902ZM2.49974 9.99896C2.49092 14.1632 5.83468 17.4981 9.99893 17.4981V2.49977C5.8435 2.49977 2.50857 5.8347 2.49974 9.99896Z" />
  31. <PathGeometry x:Key="Ic_MarkupButtonPath" Figures="M3.5 3H16.5C16.7761 3 17 3.22386 17 3.5V16.5C17 16.7761 16.7761 17 16.5 17H3.5C3.22386 17 3 16.7761 3 16.5V3.5C3 3.22386 3.22386 3 3.5 3ZM1.5 3.5C1.5 2.39543 2.39543 1.5 3.5 1.5H16.5C17.6046 1.5 18.5 2.39543 18.5 3.5V16.5C18.5 17.6046 17.6046 18.5 16.5 18.5H3.5C2.39543 18.5 1.5 17.6046 1.5 16.5V3.5ZM8.06104 14H6.3584L9.04932 6.24951H10.9561L13.6523 14H11.9443L11.3696 12.1201H8.63574L8.06104 14ZM10.0537 7.79639H9.95703L9.00635 10.9062H10.999L10.0537 7.79639Z" />
  32. <PathGeometry x:Key="Ic_InformationButtonPath" Figures="M18 3.5H2C1.72386 3.5 1.5 3.72386 1.5 4V16C1.5 16.2761 1.72386 16.5 2 16.5H18C18.2761 16.5 18.5 16.2761 18.5 16V4C18.5 3.72386 18.2761 3.5 18 3.5ZM2 2C0.895431 2 0 2.89543 0 4V16C0 17.1046 0.895431 18 2 18H18C19.1046 18 20 17.1046 20 16V4C20 2.89543 19.1046 2 18 2H2ZM17 8.6H12V7.4H17V8.6ZM12 11.6H15V10.4H12V11.6ZM6.5 9.8C7.21797 9.8 7.8 9.21797 7.8 8.5C7.8 7.78203 7.21797 7.2 6.5 7.2C5.78203 7.2 5.2 7.78203 5.2 8.5C5.2 9.21797 5.78203 9.8 6.5 9.8ZM7.8529 10.6027C8.54304 10.1577 9 9.38221 9 8.5C9 7.11929 7.88071 6 6.5 6C5.11929 6 4 7.11929 4 8.5C4 9.38221 4.45696 10.1577 5.1471 10.6027C3.58586 11.0832 2.4 12.3743 2.4 14H3.6C3.6 12.758 4.80827 11.6 6.5 11.6C8.19173 11.6 9.4 12.758 9.4 14H10.6C10.6 12.3743 9.41414 11.0832 7.8529 10.6027Z" />
  33. <Style x:Key="Label" TargetType="Label">
  34. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
  35. <Setter Property="VerticalAlignment" Value="Center" />
  36. <Setter Property="FontSize" Value="12" />
  37. <Setter Property="FontWeight" Value="Bold" />
  38. </Style>
  39. <Style x:Key="Label2" TargetType="Label">
  40. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
  41. <Setter Property="VerticalAlignment" Value="Center" />
  42. <Setter Property="FontFamily" Value="Segoe UI" />
  43. <Setter Property="FontSize" Value="14" />
  44. </Style>
  45. <Style x:Key="RadioButtonStyle1" TargetType="{x:Type RadioButton}">
  46. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  47. <Setter Property="Background" Value="{StaticResource color.icon.checkbox-radio.norm.bg}" />
  48. <Setter Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.norm.border}" />
  49. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
  50. <Setter Property="BorderThickness" Value="1" />
  51. <Setter Property="Padding" Value="8,0,0,0" />
  52. <Setter Property="FontSize" Value="14" />
  53. <Setter Property="FontFamily" Value="Segoe UI" />
  54. <Setter Property="VerticalAlignment" Value="Center" />
  55. <Setter Property="Template">
  56. <Setter.Value>
  57. <ControlTemplate TargetType="{x:Type RadioButton}">
  58. <Grid
  59. x:Name="templateRoot"
  60. Background="Transparent"
  61. SnapsToDevicePixels="True">
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition Width="Auto" />
  64. <ColumnDefinition Width="*" />
  65. </Grid.ColumnDefinitions>
  66. <Border
  67. x:Name="radioButtonBorder"
  68. Width="14"
  69. Height="14"
  70. HorizontalAlignment="Center"
  71. VerticalAlignment="Center"
  72. Background="{TemplateBinding Background}"
  73. BorderBrush="{TemplateBinding BorderBrush}"
  74. BorderThickness="{TemplateBinding BorderThickness}"
  75. CornerRadius="100">
  76. <Grid x:Name="markGrid" Margin="1.8">
  77. <Ellipse
  78. x:Name="optionMark"
  79. MinWidth="6"
  80. MinHeight="6"
  81. Fill="{StaticResource color.icon.checkbox-radio.sel.bg}"
  82. Opacity="0" />
  83. </Grid>
  84. </Border>
  85. <ContentPresenter
  86. x:Name="contentPresenter"
  87. Grid.Column="1"
  88. Margin="{TemplateBinding Padding}"
  89. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  90. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  91. Focusable="False"
  92. RecognizesAccessKey="True"
  93. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  94. </Grid>
  95. <ControlTemplate.Triggers>
  96. <Trigger Property="IsMouseOver" Value="true">
  97. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
  98. </Trigger>
  99. <Trigger Property="IsEnabled" Value="false">
  100. <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.dis.bg}" />
  101. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.dis.border}" />
  102. <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource color.icon.checkbox-radio.dis.fill}" />
  103. </Trigger>
  104. <Trigger Property="IsChecked" Value="true">
  105. <Setter TargetName="optionMark" Property="Opacity" Value="1" />
  106. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
  107. </Trigger>
  108. <Trigger Property="IsChecked" Value="{x:Null}">
  109. <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
  110. </Trigger>
  111. </ControlTemplate.Triggers>
  112. </ControlTemplate>
  113. </Setter.Value>
  114. </Setter>
  115. </Style>
  116. </ResourceDictionary>
  117. </UserControl.Resources>
  118. <Grid Background="{StaticResource color.sys.layout.mg}">
  119. <Grid.RowDefinitions>
  120. <RowDefinition Height="40" />
  121. <RowDefinition />
  122. </Grid.RowDefinitions>
  123. <TabControl
  124. Grid.Row="1"
  125. BorderThickness="0"
  126. SelectedIndex="{Binding ModeSelectedIndex, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}"
  127. TabStripPlacement="Left">
  128. <TabItem x:Name="TabItemGeneral" Style="{StaticResource InfoTabItem}">
  129. <TabItem.Header>
  130. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  131. <Path
  132. Margin="0,0,8,0"
  133. Data="{StaticResource Ic_GeneralButtonPath}"
  134. Fill="{Binding ElementName=TabItemGeneral, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
  135. <TextBlock
  136. VerticalAlignment="Center"
  137. Foreground="{Binding ElementName=TabItemGeneral, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
  138. Text="{Binding Settings_General}" />
  139. </StackPanel>
  140. </TabItem.Header>
  141. <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">
  142. <StackPanel Margin="16,10,10,0">
  143. <Label Content="{Binding Settings_General_Documents}" Style="{StaticResource Label}" />
  144. <Border
  145. Margin="0,10,0,16"
  146. Background="{StaticResource color.sys.layout.mg}"
  147. CornerRadius="6">
  148. <StackPanel>
  149. <CheckBox
  150. Margin="8"
  151. Content="{Binding Settings_General_Open}"
  152. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  153. IsChecked="{Binding Descript.OpenUnClosedFileWhenOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  154. <CheckBox
  155. Margin="8,0,8,0"
  156. Content="{Binding Settings_General_Restore}"
  157. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  158. IsChecked="{Binding Descript.RecoveryViewWhenOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  159. <Label
  160. Margin="8"
  161. Content="{Binding Settings_General_Maximum}"
  162. Style="{StaticResource Label2}" />
  163. <StackPanel Margin="8,0,8,8" Orientation="Horizontal">
  164. <cus:NumericUpDown
  165. Width="120"
  166. HorizontalAlignment="Left"
  167. BorderThickness="0"
  168. FontSize="14"
  169. Foreground="{StaticResource color.field.text.act}"
  170. Maximum="50"
  171. Minimum="10"
  172. Value="{Binding Descript.FileCountInRecentFiles, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  173. <TextBlock
  174. Margin="8,0"
  175. VerticalAlignment="Center"
  176. Foreground="{StaticResource color.sys.text.neutral.lv3}"
  177. Text="10 to 50" />
  178. </StackPanel>
  179. <Rectangle
  180. Width="446"
  181. Height="1"
  182. Fill="{StaticResource color.sys.layout.divider}" />
  183. <StackPanel Margin="8" Orientation="Horizontal">
  184. <CheckBox
  185. Name="ChkAutoSave"
  186. Content="{Binding Settings_General_Auto}"
  187. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  188. IsChecked="{Binding Descript.AutoSave, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  189. IsEnabled="{Binding AutoSaveEnable}" />
  190. <cus:NumericUpDown
  191. Width="120"
  192. Margin="8,0,0,0"
  193. HorizontalAlignment="Left"
  194. BorderThickness="0"
  195. FontSize="14"
  196. Foreground="{StaticResource color.field.text.act}"
  197. IsEnabled="{Binding ElementName=ChkAutoSave, Path=IsChecked}"
  198. Maximum="99"
  199. Minimum="5"
  200. Value="{Binding Descript.AutoSaveInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  201. <Label
  202. Margin="8,0,0,0"
  203. Content="min"
  204. Style="{StaticResource Label}" />
  205. <TextBlock
  206. Margin="8,0"
  207. VerticalAlignment="Center"
  208. Foreground="{StaticResource color.sys.text.neutral.lv3}"
  209. Text="5 to 99" />
  210. </StackPanel>
  211. <Grid Margin="8,0,0,8">
  212. <Grid.ColumnDefinitions>
  213. <ColumnDefinition Width="auto" />
  214. <ColumnDefinition />
  215. </Grid.ColumnDefinitions>
  216. <Grid.RowDefinitions>
  217. <RowDefinition />
  218. <RowDefinition />
  219. </Grid.RowDefinitions>
  220. <Label
  221. Grid.Row="0"
  222. Grid.Column="0"
  223. Content="{Binding Settings_General_Close}"
  224. Style="{StaticResource Label2}" />
  225. <RadioButton
  226. Grid.Row="0"
  227. Grid.Column="1"
  228. Content="{Binding Settings_General_ASave}"
  229. IsChecked="{Binding Descript.ShowSaveWhenClose, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  230. Style="{DynamicResource RadioButtonStyle1}" />
  231. <RadioButton
  232. Grid.Row="1"
  233. Grid.Column="1"
  234. Margin="0,8"
  235. Content="{Binding Settings_General_Savedirectly}"
  236. IsChecked="{Binding Descript.NotShowSaveWhenClose, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  237. Style="{DynamicResource RadioButtonStyle1}" />
  238. </Grid>
  239. </StackPanel>
  240. </Border>
  241. <Grid Visibility="Collapsed">
  242. <Label Content="打开图片文档" Style="{StaticResource Label}" />
  243. <Border
  244. Margin="0,10,0,18"
  245. Background="{StaticResource color.sys.layout.mg}"
  246. CornerRadius="6">
  247. <StackPanel>
  248. <RadioButton
  249. Margin="9,12,0,0"
  250. Content="自动扫描并识别文本"
  251. IsChecked="{Binding Descript.AutoScanImageFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  252. Style="{DynamicResource RadioButtonStyle1}" />
  253. <RadioButton
  254. Grid.Row="1"
  255. Margin="9,10"
  256. Content="提示扫描并识别文本"
  257. IsChecked="{Binding Descript.TipScanImageFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  258. Style="{DynamicResource RadioButtonStyle1}" />
  259. </StackPanel>
  260. </Border>
  261. </Grid>
  262. <WrapPanel>
  263. <Label
  264. Margin="1,0"
  265. Content="{Binding Settings_General_Author}"
  266. Style="{StaticResource Label2}" />
  267. <cus:TextBoxEx
  268. Width="224"
  269. VerticalAlignment="Center"
  270. Foreground="{StaticResource color.field.text.act}"
  271. Text="{Binding Descript.Author, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  272. </WrapPanel>
  273. <CheckBox
  274. Name="CheckBoxDefaultPDF"
  275. Margin="8,16"
  276. Content="Set as the default viewer(Only administrator can change this setting)"
  277. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  278. IsChecked="{Binding IsDefualtApp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  279. IsEnabled="{Binding IsSetDefualtAppEnable}"
  280. Visibility="Visible" />
  281. </StackPanel>
  282. </ScrollViewer>
  283. </TabItem>
  284. <TabItem x:Name="TabItemDisplay" Style="{StaticResource InfoTabItem}">
  285. <TabItem.Header>
  286. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  287. <Path
  288. Margin="0,0,8,0"
  289. Data="{StaticResource Ic_DisplayButtonPath}"
  290. Fill="{Binding ElementName=TabItemDisplay, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
  291. <TextBlock
  292. VerticalAlignment="Center"
  293. Foreground="{Binding ElementName=TabItemDisplay, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
  294. Text="{Binding Settings_Display}" />
  295. </StackPanel>
  296. </TabItem.Header>
  297. <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">
  298. <StackPanel Margin="16,10,10,0" Background="{StaticResource color.sys.layout.anti}">
  299. <Label Content="{Binding Settings_Display_DefaultV}" Style="{StaticResource Label}" />
  300. <Border
  301. Margin="0,10,0,16"
  302. Background="{StaticResource color.sys.layout.mg}"
  303. CornerRadius="6">
  304. <Grid>
  305. <Grid.RowDefinitions>
  306. <RowDefinition />
  307. <RowDefinition />
  308. </Grid.RowDefinitions>
  309. <WrapPanel Margin="0,12,0,0">
  310. <Label
  311. Margin="8,0"
  312. Content="{Binding Settings_Display_Page}"
  313. Style="{StaticResource Label2}" />
  314. <ComboBox
  315. Width="348"
  316. Height="30"
  317. ItemsSource="{Binding PageViewList}"
  318. SelectedIndex="{Binding PageViewSelctedIndex, Mode=TwoWay}" />
  319. </WrapPanel>
  320. <WrapPanel Grid.Row="1" Margin="0,12">
  321. <Label
  322. Margin="8,0"
  323. Content="{Binding Settings_Display_Zoom}"
  324. Style="{StaticResource Label2}" />
  325. <ComboBox
  326. Width="348"
  327. Height="30"
  328. ItemsSource="{Binding ZoomModeList}"
  329. SelectedIndex="{Binding ZoomModeSelectedIndex, Mode=TwoWay}" />
  330. </WrapPanel>
  331. </Grid>
  332. </Border>
  333. <Label Content="{Binding Settings_Display_LeftPanel}" Style="{StaticResource Label}" />
  334. <Border
  335. Margin="0,8,0,16"
  336. Background="{StaticResource color.sys.layout.mg}"
  337. CornerRadius="6">
  338. <StackPanel>
  339. <Label
  340. Margin="8,8,0,0"
  341. Content="{Binding Settings_Display_Default}"
  342. Style="{StaticResource Label2}" />
  343. <RadioButton
  344. Margin="8,8,0,0"
  345. Content="{Binding Settings_Display_Collapse}"
  346. IsChecked="{Binding View.NotShowBOTA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  347. Style="{DynamicResource RadioButtonStyle1}" />
  348. <RadioButton
  349. Margin="8,8,0,0"
  350. Content="{Binding Settings_Display_Remember}"
  351. IsChecked="{Binding View.RememberBOTA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  352. Style="{DynamicResource RadioButtonStyle1}" />
  353. <RadioButton
  354. Margin="8,8,0,8"
  355. Content="{Binding Settings_Display_Show}"
  356. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  357. IsChecked="{Binding View.ShowOutLine, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  358. Style="{DynamicResource RadioButtonStyle1}" />
  359. </StackPanel>
  360. </Border>
  361. <Label Content="{Binding Settings_Display_Properties}" Style="{StaticResource Label}" />
  362. <Border
  363. Margin="0,8,0,16"
  364. Background="{StaticResource color.sys.layout.mg}"
  365. CornerRadius="6">
  366. <WrapPanel>
  367. <Label
  368. Margin="8,8,16,8"
  369. Content="{Binding Settings_Display_Display}"
  370. Style="{StaticResource Label2}" />
  371. <RadioButton
  372. Content="{Binding Settings_Display_Auto}"
  373. IsChecked="{Binding View.AutoExpandProperty}"
  374. Style="{DynamicResource RadioButtonStyle1}" />
  375. <RadioButton
  376. Margin="8,8,0,8"
  377. Content="{Binding Settings_Display_Manually}"
  378. IsChecked="{Binding View.ClickOpenProperty}"
  379. Style="{DynamicResource RadioButtonStyle1}" />
  380. </WrapPanel>
  381. </Border>
  382. <Label Content="{Binding Settings_Display_Background}" Style="{StaticResource Label}" />
  383. <WrapPanel Margin="0,8,0,16">
  384. <Label Content="{Binding Settings_Display_Normal}" Style="{StaticResource Label2}" />
  385. <compositecontrol:ColorContent
  386. IsColorDropPickerClick="False"
  387. SelectedColor="{Binding View.BackGround, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  388. ShowColorList="Collapsed" />
  389. <Label
  390. Margin="16,0,0,0"
  391. Content="{Binding Settings_Display_Full}"
  392. Style="{StaticResource Label}" />
  393. <compositecontrol:ColorContent
  394. IsColorDropPickerClick="False"
  395. SelectedColor="{Binding View.BackGroundInFulWindow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  396. ShowColorList="Collapsed" />
  397. </WrapPanel>
  398. <!--<CheckBox
  399. Margin="5,0,0,8"
  400. Content="高亮表单"
  401. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  402. IsChecked="{Binding View.HignlightForm, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  403. -->
  404. <!-- 域高亮色 -->
  405. <!--
  406. <WrapPanel>
  407. <Label Content="域高亮色:" Style="{StaticResource Label2}" />
  408. <compositecontrol:ColorContent SelectedColor="{Binding View.FormHighLightColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
  409. </WrapPanel>
  410. <WrapPanel>
  411. <Label Content="必填栏高亮色:" Style="{StaticResource Label2}" />
  412. <compositecontrol:ColorContent SelectedColor="{Binding View.RequiredFieldsColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
  413. </WrapPanel>-->
  414. <CheckBox
  415. Margin="5,0,0,8"
  416. Content="{Binding Settings_Display_Highlight}"
  417. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  418. IsChecked="{Binding View.HighlightLink, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  419. </StackPanel>
  420. </ScrollViewer>
  421. </TabItem>
  422. <TabItem x:Name="TabItemMarkup" Style="{StaticResource InfoTabItem}">
  423. <TabItem.Header>
  424. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  425. <Path
  426. Margin="0,0,8,0"
  427. Data="{StaticResource Ic_MarkupButtonPath}"
  428. Fill="{Binding ElementName=TabItemMarkup, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
  429. <TextBlock
  430. VerticalAlignment="Center"
  431. Foreground="{Binding ElementName=TabItemMarkup, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
  432. Text="{Binding Settings_Annotation}" />
  433. </StackPanel>
  434. </TabItem.Header>
  435. <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">
  436. <StackPanel Margin="16,10,10,0">
  437. <Label Content="{Binding Settings_Annotation_Annotation}" Style="{StaticResource Label}" />
  438. <Border
  439. Margin="0,8,0,16"
  440. Background="{StaticResource color.sys.layout.mg}"
  441. CornerRadius="6">
  442. <Grid Margin="8,4,8,4">
  443. <Grid.ColumnDefinitions>
  444. <ColumnDefinition Width="148" />
  445. <ColumnDefinition Width="88" />
  446. <ColumnDefinition Width="*" />
  447. <ColumnDefinition Width="56" />
  448. </Grid.ColumnDefinitions>
  449. <Grid.RowDefinitions>
  450. <RowDefinition />
  451. <RowDefinition />
  452. <RowDefinition />
  453. <RowDefinition />
  454. <RowDefinition />
  455. <RowDefinition />
  456. </Grid.RowDefinitions>
  457. <Label Content="{Binding Settings_Annotation_Highlight}" Style="{StaticResource Label2}" />
  458. <compositecontrol:ColorContent
  459. Grid.Column="1"
  460. Height="40"
  461. HorizontalAlignment="Left"
  462. IsColorDropPickerClick="False"
  463. SelectedColor="{Binding Annote.HighLightColor, Mode=TwoWay}"
  464. ShowColorList="Collapsed" />
  465. <Label
  466. Grid.Column="2"
  467. Content="{Binding Settings_Annotation_RectangleFill}"
  468. Style="{StaticResource Label2}" />
  469. <compositecontrol:ColorContent
  470. Grid.Column="3"
  471. Height="40"
  472. IsColorDropPickerClick="False"
  473. SelectedColor="{Binding Annote.RectangleFillColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  474. ShowColorList="Collapsed" />
  475. <Label
  476. Grid.Row="1"
  477. Content="{Binding Settings_Annotation_Strikethrough}"
  478. Style="{StaticResource Label2}" />
  479. <compositecontrol:ColorContent
  480. Grid.Row="1"
  481. Grid.Column="1"
  482. Height="40"
  483. HorizontalAlignment="Left"
  484. IsColorDropPickerClick="False"
  485. SelectedColor="{Binding Annote.StrikethroughColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  486. ShowColorList="Collapsed" />
  487. <Label
  488. Grid.Row="1"
  489. Grid.Column="2"
  490. Content="{Binding Settings_Annotation_RectangleBorder}"
  491. Style="{StaticResource Label2}" />
  492. <compositecontrol:ColorContent
  493. Grid.Row="1"
  494. Grid.Column="3"
  495. Height="40"
  496. IsColorDropPickerClick="False"
  497. SelectedColor="{Binding Annote.RectangleBorderColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  498. ShowColorList="Collapsed" />
  499. <Label
  500. Grid.Row="2"
  501. Content="{Binding Settings_Annotation_Underline}"
  502. Style="{StaticResource Label2}" />
  503. <compositecontrol:ColorContent
  504. Grid.Row="2"
  505. Grid.Column="1"
  506. Height="40"
  507. HorizontalAlignment="Left"
  508. IsColorDropPickerClick="False"
  509. SelectedColor="{Binding Annote.UnderLineColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  510. ShowColorList="Collapsed" />
  511. <Label
  512. Grid.Row="2"
  513. Grid.Column="2"
  514. Content="{Binding Settings_Annotation_CircleFill}"
  515. Style="{StaticResource Label2}" />
  516. <compositecontrol:ColorContent
  517. Grid.Row="2"
  518. Grid.Column="3"
  519. Height="40"
  520. IsColorDropPickerClick="False"
  521. SelectedColor="{Binding Annote.CircleFillColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  522. ShowColorList="Collapsed" />
  523. <Label
  524. Grid.Row="3"
  525. Content="{Binding Settings_Annotation_Freehand}"
  526. Style="{StaticResource Label2}" />
  527. <compositecontrol:ColorContent
  528. Grid.Row="3"
  529. Grid.Column="1"
  530. Height="40"
  531. HorizontalAlignment="Left"
  532. IsColorDropPickerClick="False"
  533. SelectedColor="{Binding Annote.FreeHandColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  534. ShowColorList="Collapsed" />
  535. <Label
  536. Grid.Row="3"
  537. Grid.Column="2"
  538. Content="{Binding Settings_Annotation_CircleBorder}"
  539. Style="{StaticResource Label2}" />
  540. <compositecontrol:ColorContent
  541. Grid.Row="3"
  542. Grid.Column="3"
  543. Height="40"
  544. IsColorDropPickerClick="False"
  545. SelectedColor="{Binding Annote.CircleBorderColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  546. ShowColorList="Collapsed" />
  547. <Label
  548. Grid.Row="4"
  549. Content="{Binding Settings_Annotation_TextBox}"
  550. Style="{StaticResource Label2}" />
  551. <compositecontrol:ColorContent
  552. Grid.Row="4"
  553. Grid.Column="1"
  554. Height="40"
  555. HorizontalAlignment="Left"
  556. IsColorDropPickerClick="False"
  557. SelectedColor="{Binding Annote.TextAnnoteColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  558. ShowColorList="Collapsed" />
  559. <Label
  560. Grid.Row="4"
  561. Grid.Column="2"
  562. Content="{Binding Settings_Annotation_Line}"
  563. Style="{StaticResource Label2}" />
  564. <compositecontrol:ColorContent
  565. Grid.Row="4"
  566. Grid.Column="3"
  567. Height="40"
  568. IsColorDropPickerClick="False"
  569. SelectedColor="{Binding Annote.LineColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  570. ShowColorList="Collapsed" />
  571. <Label
  572. Grid.Row="5"
  573. Content="{Binding Settings_Annotation_StickyNote}"
  574. Style="{StaticResource Label2}" />
  575. <compositecontrol:ColorContent
  576. Grid.Row="5"
  577. Grid.Column="1"
  578. Height="40"
  579. HorizontalAlignment="Left"
  580. IsColorDropPickerClick="False"
  581. SelectedColor="{Binding Annote.NoteAnnoteColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  582. ShowColorList="Collapsed" />
  583. <Label
  584. Grid.Row="5"
  585. Grid.Column="2"
  586. Content="Arrow:"
  587. Style="{StaticResource Label2}" />
  588. <compositecontrol:ColorContent
  589. Grid.Row="5"
  590. Grid.Column="4"
  591. Height="40"
  592. HorizontalAlignment="Left"
  593. IsColorDropPickerClick="False"
  594. SelectedColor="{Binding Annote.ArrowColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  595. ShowColorList="Collapsed" />
  596. </Grid>
  597. </Border>
  598. <Label Content="{Binding T_Settings_Annotation_Font}" Style="{StaticResource Label}" />
  599. <Border
  600. Margin="0,2,0,0"
  601. Background="{StaticResource color.sys.layout.mg}"
  602. CornerRadius="6">
  603. <WrapPanel>
  604. <WrapPanel>
  605. <Label Content="{Binding Settings_Annotation_Text}" Style="{StaticResource Label2}" />
  606. <ComboBox
  607. Width="228"
  608. Height="30"
  609. ItemsSource="{Binding AnnoteFamilyList}"
  610. SelectedIndex="{Binding AnnoteSelectedIndex}" />
  611. <RadioButton
  612. Name="RbtLeft"
  613. Width="32"
  614. Height="32"
  615. Margin="8,8,0,8"
  616. HorizontalAlignment="Center"
  617. VerticalAlignment="Center"
  618. IsChecked="{Binding LeftSelected}"
  619. Style="{StaticResource GreyBgRadioBtnStyle}">
  620. <Grid Width="32" Height="32">
  621. <Canvas Margin="5,10,0,0">
  622. <Rectangle
  623. Canvas.Top="0.25"
  624. Width="14"
  625. Height="1.5"
  626. Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
  627. StrokeThickness="1.5" />
  628. <Rectangle
  629. Canvas.Top="4.25"
  630. Width="8"
  631. Height="1.5"
  632. Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
  633. StrokeThickness="1.5" />
  634. <Rectangle
  635. Canvas.Top="12.25"
  636. Width="8"
  637. Height="1.5"
  638. Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
  639. StrokeThickness="1.5" />
  640. <Rectangle
  641. Canvas.Top="8.25"
  642. Width="14"
  643. Height="1.5"
  644. Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
  645. StrokeThickness="1.5" />
  646. </Canvas>
  647. </Grid>
  648. </RadioButton>
  649. <RadioButton
  650. Name="RbtCenter"
  651. Width="32"
  652. Height="32"
  653. Margin="8"
  654. HorizontalAlignment="Center"
  655. VerticalAlignment="Center"
  656. IsChecked="{Binding CenterSelected}"
  657. Style="{StaticResource GreyBgRadioBtnStyle}">
  658. <Grid Width="32" Height="32">
  659. <Canvas Margin="5,10,0,0">
  660. <Rectangle
  661. Canvas.Top="0.25"
  662. Width="14"
  663. Height="1.5"
  664. Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
  665. StrokeThickness="1.5" />
  666. <Rectangle
  667. Canvas.Left="3"
  668. Canvas.Top="4.25"
  669. Width="8"
  670. Height="1.5"
  671. Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
  672. StrokeThickness="1.5" />
  673. <Rectangle
  674. Canvas.Left="3"
  675. Canvas.Top="12.25"
  676. Width="8"
  677. Height="1.5"
  678. Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
  679. StrokeThickness="1.5" />
  680. <Rectangle
  681. Canvas.Top="8.25"
  682. Width="14"
  683. Height="1.5"
  684. Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
  685. StrokeThickness="1.5" />
  686. </Canvas>
  687. </Grid>
  688. </RadioButton>
  689. <RadioButton
  690. Name="RbtRight"
  691. Width="32"
  692. Height="32"
  693. Margin="0,8,8,8"
  694. HorizontalAlignment="Center"
  695. VerticalAlignment="Center"
  696. IsChecked="{Binding RightSelected}"
  697. Style="{StaticResource GreyBgRadioBtnStyle}">
  698. <Grid Width="32" Height="32">
  699. <Canvas Margin="5,10,0,0">
  700. <Rectangle
  701. Canvas.Top="0.25"
  702. Width="14"
  703. Height="1.5"
  704. Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
  705. StrokeThickness="1.5" />
  706. <Rectangle
  707. Canvas.Left="6"
  708. Canvas.Top="4.25"
  709. Width="8"
  710. Height="1.5"
  711. Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
  712. StrokeThickness="1.5" />
  713. <Rectangle
  714. Canvas.Left="6"
  715. Canvas.Top="12.25"
  716. Width="8"
  717. Height="1.5"
  718. Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
  719. StrokeThickness="1.5" />
  720. <Rectangle
  721. Canvas.Top="8.25"
  722. Width="14"
  723. Height="1.5"
  724. Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
  725. StrokeThickness="1.5" />
  726. </Canvas>
  727. </Grid>
  728. </RadioButton>
  729. <RadioButton
  730. Name="RbtnStrech"
  731. Width="32"
  732. Height="32"
  733. HorizontalAlignment="Center"
  734. VerticalAlignment="Center"
  735. IsChecked="{Binding StrechSelected}"
  736. Style="{StaticResource GreyBgRadioBtnStyle}"
  737. Visibility="Collapsed">
  738. <Grid Width="32" Height="32">
  739. <Canvas Margin="5,10,0,0">
  740. <Rectangle
  741. Canvas.Top="0.25"
  742. Width="14"
  743. Height="1.5"
  744. Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
  745. StrokeThickness="1.5" />
  746. <Rectangle
  747. Canvas.Top="8.25"
  748. Width="14"
  749. Height="1.5"
  750. Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
  751. StrokeThickness="1.5" />
  752. <Rectangle
  753. Canvas.Top="4.25"
  754. Width="14"
  755. Height="1.5"
  756. Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
  757. StrokeThickness="1.5" />
  758. <Rectangle
  759. Canvas.Top="12.25"
  760. Width="14"
  761. Height="1.5"
  762. Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
  763. StrokeThickness="1.5" />
  764. </Canvas>
  765. </Grid>
  766. </RadioButton>
  767. </WrapPanel>
  768. <WrapPanel Margin="0,0,0,8">
  769. <Label Content="{Binding Settings_Annotation_StickyNote}" Style="{StaticResource Label2}" />
  770. <ComboBox
  771. Width="228"
  772. Height="30"
  773. ItemsSource="{Binding AnnoteFamilyList}"
  774. SelectedIndex="{Binding NoteSelectedIndex, Mode=TwoWay}" />
  775. </WrapPanel>
  776. </WrapPanel>
  777. </Border>
  778. </StackPanel>
  779. </ScrollViewer>
  780. </TabItem>
  781. <TabItem
  782. x:Name="TabItemInformation"
  783. Style="{StaticResource InfoTabItem}"
  784. Visibility="Collapsed">
  785. <TabItem.Header>
  786. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  787. <Path
  788. Margin="0,0,8,0"
  789. Data="{StaticResource Ic_InformationButtonPath}"
  790. Fill="{Binding ElementName=TabItemInformation, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
  791. <TextBlock
  792. VerticalAlignment="Center"
  793. Foreground="{Binding ElementName=TabItemInformation, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
  794. Text="Information" />
  795. </StackPanel>
  796. </TabItem.Header>
  797. <StackPanel Background="#f1ef9f">
  798. <Label Content="Content goes here2..." />
  799. <Label Content="Content goes here2..." />
  800. <Button
  801. Width="150"
  802. Height="35"
  803. Content="Security" />
  804. </StackPanel>
  805. </TabItem>
  806. </TabControl>
  807. <WrapPanel
  808. Grid.Row="1"
  809. Width="494"
  810. HorizontalAlignment="Right"
  811. VerticalAlignment="Bottom"
  812. Background="{StaticResource color.sys.layout.anti}">
  813. <Button
  814. Width="120"
  815. Height="32"
  816. Margin="16,24"
  817. Command="{Binding ResetCommand}"
  818. Content="{Binding Settings_ResetAll}"
  819. FontSize="14"
  820. Style="{StaticResource btn.sec}" />
  821. <Button
  822. Width="120"
  823. Height="32"
  824. Command="{Binding ResetAllCommand}"
  825. Content="{Binding Settings_Reset}"
  826. FontSize="14"
  827. Style="{StaticResource btn.sec}" />
  828. </WrapPanel>
  829. <Grid VerticalAlignment="Top" Background="{StaticResource color.sys.layout.bg.tabbar}">
  830. <TextBlock
  831. Width="550"
  832. Margin="16,6"
  833. HorizontalAlignment="Left"
  834. VerticalAlignment="Center"
  835. FontFamily="Segoe UI"
  836. FontSize="16"
  837. FontWeight="Bold"
  838. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  839. Text="{Binding Settings_Preferences}" />
  840. <StackPanel
  841. Name="StkPnlRight"
  842. HorizontalAlignment="Right"
  843. Orientation="Horizontal"
  844. WindowChrome.IsHitTestVisibleInChrome="True">
  845. <Button
  846. Name="BtnClose"
  847. Width="40"
  848. Height="40"
  849. Background="Transparent"
  850. BorderThickness="0"
  851. Click="BtnClose_Click"
  852. Style="{StaticResource CloseBtn}">
  853. <Polygon Fill="{StaticResource color.btn.sec.text.def}" Points="11.2919922 12 12 11.2919922 6.70800781 6 12 0.708007813 11.2919922 0 6 5.29199219 0.708007812 9.76996262e-15 -2.27456942e-13 0.708007813 5.29199219 6 0 11.2919922 0.708007812 12 6 6.70800781" />
  854. </Button>
  855. </StackPanel>
  856. </Grid>
  857. </Grid>
  858. </UserControl>