App.xaml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  1. <prism:PrismApplication
  2. x:Class="PDF_Master.App"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2"
  6. xmlns:local="clr-namespace:PDF_Master"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:sys="clr-namespace:System;assembly=mscorlib">
  9. <Application.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Themes/Alias_Light.xaml" />
  13. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Themes/Global.xaml" />
  14. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/TabControlStyle.xaml" />
  15. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/SeparatorStyle.xaml" />
  16. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ButtonStyle.xaml" />
  17. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ToggleButton.xaml" />
  18. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/TextBoxStyle.xaml" />
  19. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ComboxStyle.xaml" />
  20. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ListBoxStyle.xaml" />
  21. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/WindowsStyle.xaml" />
  22. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/CustomBtnStyle.xaml" />
  23. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ContainerStyles/ComboxStyle/ComboxItemStyle.xaml" />
  24. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/RadioButtonStyle.xaml" />
  25. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/PathButtonStyle.xaml" />
  26. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ImageButtonStyle.xaml" />
  27. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/PathRadioButtonDictionary.xaml" />
  28. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ImageRadioButtonDictionary.xaml" />
  29. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ContextMenuTextEditStyle.xaml" />
  30. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ContextMenuStyle.xaml" />
  31. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/ContextMenuFormStyle.xaml" />
  32. <!-- Enable show customctrol's correctly UI in Xaml Designer -->
  33. <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Themes/Generic.xaml" />
  34. </ResourceDictionary.MergedDictionaries>
  35. <Style TargetType="{x:Type Hyperlink}">
  36. <Setter Property="Foreground" Value="#477EDE" />
  37. <Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
  38. <Style.Triggers>
  39. <Trigger Property="IsMouseOver" Value="True">
  40. <Setter Property="Foreground" Value="#6B97E4" />
  41. <!-- 在鼠标悬停显示下划线 -->
  42. <Setter Property="TextBlock.TextDecorations">
  43. <Setter.Value>
  44. <TextDecorationCollection>
  45. <TextDecoration Location="Underline" />
  46. </TextDecorationCollection>
  47. </Setter.Value>
  48. </Setter>
  49. </Trigger>
  50. </Style.Triggers>
  51. </Style>
  52. <!-- Design Token Menu Without Icon -->
  53. <Style x:Key="GlobalMenuItem" TargetType="{x:Type MenuItem}">
  54. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
  55. <Setter Property="Background" Value="Transparent" />
  56. <Setter Property="Height" Value="32" />
  57. <Setter Property="Margin" Value="8,0" />
  58. <Setter Property="Template">
  59. <Setter.Value>
  60. <ControlTemplate TargetType="{x:Type MenuItem}">
  61. <Border
  62. x:Name="Border"
  63. Background="{TemplateBinding Background}"
  64. BorderBrush="{TemplateBinding BorderBrush}"
  65. BorderThickness="0"
  66. CornerRadius="7">
  67. <Grid>
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition
  70. x:Name="ColIcon"
  71. Width="Auto"
  72. SharedSizeGroup="MenuItemIconColumnGroup" />
  73. <ColumnDefinition Width="Auto" SharedSizeGroup="MenuTextColumnGroup" />
  74. <ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup" />
  75. <ColumnDefinition x:Name="ColNext" Width="auto" />
  76. </Grid.ColumnDefinitions>
  77. <ContentPresenter
  78. x:Name="Icon"
  79. Grid.Column="0"
  80. Margin="5,0"
  81. VerticalAlignment="Center"
  82. ContentSource="Icon" />
  83. <Grid
  84. x:Name="GlyphPanel"
  85. Grid.Column="0"
  86. Margin="5,0"
  87. VerticalAlignment="Center"
  88. Visibility="Collapsed">
  89. <Viewbox
  90. Width="18"
  91. Height="18"
  92. VerticalAlignment="Center"
  93. FlowDirection="LeftToRight">
  94. <Path Data="M422.36247 839.786465c-13.320377 13.421684-34.909068 13.421684-48.126091 0l-10.69355-10.800997 0 0-11.398608-11.502985-50.145074-50.544163c-0.097214-0.201591 0-0.500397-0.201591-0.604774L72.380494 533.085224c-13.320377-13.421684-13.320377-35.218106 0-48.535413l72.132854-72.842005c13.319353-13.408381 34.907021-13.408381 48.224328 0l205.814506 209.252815L831.363631 184.208419c13.218046-13.414521 34.806737-13.414521 48.124044 0l72.134901 72.842005c13.317307 13.408381 13.317307 35.113729 0 48.52211L422.36247 839.786465 422.36247 839.786465z" Fill="{TemplateBinding Foreground}" />
  95. </Viewbox>
  96. </Grid>
  97. <ContentPresenter
  98. x:Name="HeaderHost"
  99. Grid.Column="1"
  100. Margin="{TemplateBinding Padding}"
  101. VerticalAlignment="Center"
  102. ContentSource="Header"
  103. RecognizesAccessKey="True" />
  104. <ContentPresenter
  105. x:Name="IGTHost"
  106. Grid.Column="2"
  107. Margin="8,0"
  108. VerticalAlignment="Center"
  109. ContentSource="InputGestureText" />
  110. <Grid
  111. x:Name="ArrowPanel"
  112. Grid.Column="3"
  113. Margin="10,0"
  114. HorizontalAlignment="Right"
  115. VerticalAlignment="Center">
  116. <Path
  117. x:Name="ArrowPanelPath"
  118. HorizontalAlignment="Right"
  119. VerticalAlignment="Center"
  120. Data="M0,0 L0,8 L4,4 z"
  121. Fill="{TemplateBinding Foreground}" />
  122. </Grid>
  123. <Popup
  124. x:Name="SubMenuPopup"
  125. AllowsTransparency="True"
  126. Focusable="false"
  127. IsOpen="{Binding Path=IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
  128. Placement="Right">
  129. <Border
  130. x:Name="SubMenuBorder"
  131. Padding="2,2,2,2"
  132. Background="{StaticResource color.sys.layout.mg}"
  133. BorderBrush="#999999"
  134. BorderThickness="0"
  135. CornerRadius="7">
  136. <Grid x:Name="SubMenu" Grid.IsSharedSizeScope="True">
  137. <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle" />
  138. </Grid>
  139. </Border>
  140. </Popup>
  141. </Grid>
  142. </Border>
  143. <ControlTemplate.Triggers>
  144. <Trigger Property="Role" Value="TopLevelHeader">
  145. <Setter Property="Padding" Value="6,1" />
  146. <Setter TargetName="SubMenuPopup" Property="Placement" Value="Bottom" />
  147. <Setter TargetName="ColIcon" Property="MinWidth" Value="0" />
  148. <Setter TargetName="ColNext" Property="Width" Value="Auto" />
  149. <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
  150. <Setter TargetName="GlyphPanel" Property="Visibility" Value="Collapsed" />
  151. <Setter TargetName="IGTHost" Property="Visibility" Value="Collapsed" />
  152. <Setter TargetName="ArrowPanel" Property="Visibility" Value="Collapsed" />
  153. </Trigger>
  154. <Trigger Property="IsHighlighted" Value="true">
  155. <Setter TargetName="Border" Property="Background" Value="{StaticResource color.item-state.sel.bg.lv1}" />
  156. <Setter Property="Foreground" Value="{StaticResource color.sys.text.accent.norm}" />
  157. </Trigger>
  158. <MultiTrigger>
  159. <MultiTrigger.Conditions>
  160. <Condition Property="IsHighlighted" Value="True" />
  161. <Condition Property="Role" Value="TopLevelHeader" />
  162. </MultiTrigger.Conditions>
  163. <MultiTrigger.Setters>
  164. <Setter TargetName="Border" Property="Background" Value="{StaticResource color.sys.layout.mg}" />
  165. </MultiTrigger.Setters>
  166. </MultiTrigger>
  167. <Trigger Property="Role" Value="TopLevelItem">
  168. <Setter Property="Padding" Value="6,1" />
  169. <Setter TargetName="ArrowPanel" Property="Visibility" Value="Collapsed" />
  170. </Trigger>
  171. <Trigger Property="Role" Value="SubmenuHeader">
  172. <Setter Property="Padding" Value="5,2" />
  173. </Trigger>
  174. <Trigger Property="Role" Value="SubmenuItem">
  175. <Setter Property="Padding" Value="5,2" />
  176. <Setter TargetName="ArrowPanel" Property="Visibility" Value="Collapsed" />
  177. </Trigger>
  178. <Trigger Property="Icon" Value="{x:Null}">
  179. <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
  180. </Trigger>
  181. <Trigger Property="IsChecked" Value="true">
  182. <Setter TargetName="GlyphPanel" Property="Visibility" Value="Visible" />
  183. <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
  184. </Trigger>
  185. <Trigger Property="IsEnabled" Value="false">
  186. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
  187. </Trigger>
  188. </ControlTemplate.Triggers>
  189. </ControlTemplate>
  190. </Setter.Value>
  191. </Setter>
  192. </Style>
  193. <!-- set as defualt MenuItem Style -->
  194. <Style BasedOn="{StaticResource GlobalMenuItem}" TargetType="{x:Type MenuItem}" />
  195. <!-- Design Token ContextMenu -->
  196. <Style TargetType="{x:Type ContextMenu}">
  197. <Setter Property="Template">
  198. <Setter.Value>
  199. <ControlTemplate TargetType="{x:Type ContextMenu}">
  200. <!-- Here is where you change the border thickness to zero on the menu -->
  201. <Border Width="{TemplateBinding Width}" Padding="5">
  202. <Border.Effect>
  203. <DropShadowEffect
  204. BlurRadius="5"
  205. Direction="0"
  206. Opacity="0.16"
  207. ShadowDepth="0"
  208. Color="#000000" />
  209. </Border.Effect>
  210. <Border
  211. x:Name="Border"
  212. Padding="0,5"
  213. CornerRadius="5">
  214. <StackPanel
  215. ClipToBounds="True"
  216. IsItemsHost="True"
  217. KeyboardNavigation.DirectionalNavigation="Cycle"
  218. Orientation="Vertical" />
  219. </Border>
  220. </Border>
  221. <ControlTemplate.Triggers>
  222. <Trigger Property="IsMouseOver" Value="true">
  223. <Setter TargetName="Border" Property="Background" Value="{StaticResource color.sys.layout.mg}" />
  224. </Trigger>
  225. </ControlTemplate.Triggers>
  226. </ControlTemplate>
  227. </Setter.Value>
  228. </Setter>
  229. </Style>
  230. <!-- Design Token CheckBox -->
  231. <Style TargetType="{x:Type CheckBox}">
  232. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  233. <Setter Property="Background" Value="{StaticResource color.icon.checkbox-radio.norm.bg}" />
  234. <Setter Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.norm.border}" />
  235. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  236. <Setter Property="BorderThickness" Value="1" />
  237. <Setter Property="FontFamily" Value="Segoe UI" />
  238. <Setter Property="FontSize" Value="14" />
  239. <Setter Property="VerticalContentAlignment" Value="Center" />
  240. <Setter Property="Template">
  241. <Setter.Value>
  242. <ControlTemplate TargetType="{x:Type CheckBox}">
  243. <Grid
  244. x:Name="templateRoot"
  245. Background="Transparent"
  246. SnapsToDevicePixels="True">
  247. <Grid.ColumnDefinitions>
  248. <ColumnDefinition Width="Auto" />
  249. <ColumnDefinition Width="*" />
  250. </Grid.ColumnDefinitions>
  251. <Border
  252. x:Name="checkBoxBorder"
  253. Width="14"
  254. Height="14"
  255. Margin="1"
  256. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  257. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  258. Background="{TemplateBinding Background}"
  259. BorderBrush="{TemplateBinding BorderBrush}"
  260. BorderThickness="{TemplateBinding BorderThickness}"
  261. CornerRadius="2">
  262. <Grid x:Name="markGrid">
  263. <Path
  264. x:Name="optionMark"
  265. Data="M3 7L6.2 10L11 4"
  266. Opacity="0"
  267. Stroke="{StaticResource color.icon.checkbox-radio.norm.bg}"
  268. StrokeLineJoin="Round"
  269. StrokeThickness="1.5">
  270. <Path.RenderTransform>
  271. <TranslateTransform X="-0.5" Y="-1" />
  272. </Path.RenderTransform>
  273. </Path>
  274. <Rectangle
  275. x:Name="indeterminateMark"
  276. Margin="2"
  277. Fill="{StaticResource color.icon.checkbox-radio.norm.border}"
  278. Opacity="0" />
  279. </Grid>
  280. </Border>
  281. <ContentPresenter
  282. x:Name="contentPresenter"
  283. Grid.Column="1"
  284. Margin="{TemplateBinding Padding}"
  285. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  286. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  287. Focusable="False"
  288. RecognizesAccessKey="True"
  289. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  290. </Grid>
  291. <ControlTemplate.Triggers>
  292. <Trigger Property="HasContent" Value="true">
  293. <Setter Property="Padding" Value="4,0,0,0" />
  294. </Trigger>
  295. <Trigger Property="IsMouseOver" Value="true">
  296. <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.hov.bg}" />
  297. <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
  298. </Trigger>
  299. <MultiTrigger>
  300. <MultiTrigger.Conditions>
  301. <Condition Property="IsEnabled" Value="false" />
  302. <Condition Property="IsChecked" Value="True" />
  303. </MultiTrigger.Conditions>
  304. <MultiTrigger.Setters>
  305. <Setter TargetName="optionMark" Property="Opacity" Value="1" />
  306. <Setter TargetName="indeterminateMark" Property="Opacity" Value="0" />
  307. <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.dis.bg}" />
  308. <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.dis.border}" />
  309. <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource color.icon.checkbox-radio.dis.fill}" />
  310. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
  311. </MultiTrigger.Setters>
  312. </MultiTrigger>
  313. <MultiTrigger>
  314. <MultiTrigger.Conditions>
  315. <Condition Property="IsEnabled" Value="false" />
  316. <Condition Property="IsChecked" Value="false" />
  317. </MultiTrigger.Conditions>
  318. <MultiTrigger.Setters>
  319. <Setter TargetName="optionMark" Property="Opacity" Value="0" />
  320. <Setter TargetName="indeterminateMark" Property="Opacity" Value="1" />
  321. <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.dis.bg}" />
  322. <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.dis.border}" />
  323. </MultiTrigger.Setters>
  324. </MultiTrigger>
  325. <!--<Trigger Property="IsPressed" Value="true">
  326. <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource OptionMark.Pressed.Background}" />
  327. <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource OptionMark.Pressed.Border}" />
  328. <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource OptionMark.Pressed.Glyph}" />
  329. <Setter TargetName="indeterminateMark" Property="Fill" Value="{StaticResource OptionMark.Pressed.Glyph}" />
  330. </Trigger>-->
  331. <Trigger Property="IsChecked" Value="true">
  332. <Setter TargetName="optionMark" Property="Opacity" Value="1" />
  333. <Setter TargetName="indeterminateMark" Property="Opacity" Value="0" />
  334. <Setter TargetName="checkBoxBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.sel.bg}" />
  335. <Setter TargetName="checkBoxBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.sel.bg}" />
  336. </Trigger>
  337. <Trigger Property="IsChecked" Value="{x:Null}">
  338. <Setter TargetName="optionMark" Property="Opacity" Value="0" />
  339. <Setter TargetName="indeterminateMark" Property="Opacity" Value="1" />
  340. </Trigger>
  341. </ControlTemplate.Triggers>
  342. </ControlTemplate>
  343. </Setter.Value>
  344. </Setter>
  345. </Style>
  346. <!-- Design Token ComboboxItem -->
  347. <Style TargetType="{x:Type ComboBoxItem}">
  348. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
  349. <Setter Property="BorderThickness" Value="0" />
  350. <Setter Property="Padding" Value="8,0" />
  351. <Setter Property="Height" Value="32" />
  352. <Setter Property="Template">
  353. <Setter.Value>
  354. <ControlTemplate TargetType="{x:Type ComboBoxItem}">
  355. <Border
  356. Name="Bd"
  357. Padding="{TemplateBinding Control.Padding}"
  358. Background="{TemplateBinding Panel.Background}"
  359. BorderBrush="{TemplateBinding Border.BorderBrush}"
  360. BorderThickness="{TemplateBinding Border.BorderThickness}"
  361. CornerRadius="{StaticResource border-radius.4}"
  362. SnapsToDevicePixels="True">
  363. <ContentPresenter
  364. HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
  365. VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
  366. Content="{TemplateBinding ContentControl.Content}"
  367. ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
  368. ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
  369. SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
  370. </Border>
  371. <ControlTemplate.Triggers>
  372. <Trigger Property="UIElement.IsEnabled" Value="False">
  373. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
  374. </Trigger>
  375. <MultiTrigger>
  376. <MultiTrigger.Conditions>
  377. <Condition Property="Selector.IsSelected" Value="False" />
  378. <Condition Property="UIElement.IsMouseOver" Value="True" />
  379. <Condition Property="UIElement.IsKeyboardFocused" Value="False" />
  380. </MultiTrigger.Conditions>
  381. <Setter TargetName="Bd" Property="Panel.Background" Value="{StaticResource color.item-state.hov.bg}" />
  382. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#A826A0DA" />
  383. </MultiTrigger>
  384. <MultiTrigger>
  385. <MultiTrigger.Conditions>
  386. <Condition Property="Selector.IsSelected" Value="True" />
  387. <Condition Property="UIElement.IsMouseOver" Value="False" />
  388. <Condition Property="UIElement.IsKeyboardFocused" Value="True" />
  389. </MultiTrigger.Conditions>
  390. <Setter TargetName="Bd" Property="Panel.Background" Value="{StaticResource color.item-state.sel.bg.lv1}" />
  391. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#26A0DA" />
  392. <Setter Property="Foreground" Value="{StaticResource color.sys.text.accent.norm}" />
  393. </MultiTrigger>
  394. <MultiTrigger>
  395. <MultiTrigger.Conditions>
  396. <Condition Property="Selector.IsSelected" Value="True" />
  397. <Condition Property="UIElement.IsMouseOver" Value="True" />
  398. </MultiTrigger.Conditions>
  399. <Setter TargetName="Bd" Property="Panel.Background" Value="{StaticResource color.item-state.hov.bg}" />
  400. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A477EDE" />
  401. <Setter Property="Foreground" Value="{StaticResource color.sys.text.accent.norm}" />
  402. </MultiTrigger>
  403. <MultiTrigger>
  404. <MultiTrigger.Conditions>
  405. <Condition Property="Selector.IsSelected" Value="True" />
  406. <Condition Property="UIElement.IsMouseOver" Value="False" />
  407. <Condition Property="UIElement.IsKeyboardFocused" Value="False" />
  408. </MultiTrigger.Conditions>
  409. <Setter TargetName="Bd" Property="Panel.Background" Value="{StaticResource color.item-state.sel.bg.lv1}" />
  410. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#DADADA" />
  411. <Setter Property="Foreground" Value="{StaticResource color.sys.text.accent.norm}" />
  412. </MultiTrigger>
  413. <MultiTrigger>
  414. <MultiTrigger.Conditions>
  415. <Condition Property="Selector.IsSelected" Value="False" />
  416. <Condition Property="UIElement.IsMouseOver" Value="False" />
  417. <Condition Property="UIElement.IsKeyboardFocused" Value="True" />
  418. </MultiTrigger.Conditions>
  419. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#26A0DA" />
  420. </MultiTrigger>
  421. <MultiTrigger>
  422. <MultiTrigger.Conditions>
  423. <Condition Property="Selector.IsSelected" Value="False" />
  424. <Condition Property="UIElement.IsMouseOver" Value="True" />
  425. <Condition Property="UIElement.IsKeyboardFocused" Value="True" />
  426. </MultiTrigger.Conditions>
  427. <Setter TargetName="Bd" Property="Panel.Background" Value="{StaticResource color.item-state.hov.bg}" />
  428. <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A000000" />
  429. </MultiTrigger>
  430. </ControlTemplate.Triggers>
  431. </ControlTemplate>
  432. </Setter.Value>
  433. </Setter>
  434. </Style>
  435. <Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
  436. <Setter Property="OverridesDefaultStyle" Value="true" />
  437. <Setter Property="IsTabStop" Value="false" />
  438. <Setter Property="Focusable" Value="false" />
  439. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  440. <Setter Property="ClickMode" Value="Press" />
  441. <Setter Property="Template">
  442. <Setter.Value>
  443. <ControlTemplate TargetType="{x:Type ToggleButton}">
  444. <Border
  445. x:Name="templateRoot"
  446. Background="{TemplateBinding Background}"
  447. BorderBrush="{StaticResource color.field.border.norm}"
  448. BorderThickness="{TemplateBinding BorderThickness}"
  449. CornerRadius="{StaticResource border-radius.4}"
  450. SnapsToDevicePixels="true">
  451. <Border
  452. x:Name="splitBorder"
  453. Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"
  454. Margin="8,0"
  455. HorizontalAlignment="Right"
  456. BorderBrush="Transparent"
  457. BorderThickness="0"
  458. SnapsToDevicePixels="true">
  459. <Path
  460. x:Name="arrow"
  461. Width="12"
  462. Height="12"
  463. Margin="0"
  464. HorizontalAlignment="Center"
  465. VerticalAlignment="Center"
  466. Data="M6 7.56434L2.03039 3.59473L0.969727 4.65539L5.46967 9.15533C5.76256 9.44822 6.23743 9.44822 6.53033 9.15533L11.0303 4.65539L9.9696 3.59473L6 7.56434Z"
  467. Fill="{StaticResource color.icon.arrow.gray.def}" />
  468. </Border>
  469. </Border>
  470. <ControlTemplate.Triggers>
  471. <MultiDataTrigger>
  472. <MultiDataTrigger.Conditions>
  473. <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" />
  474. <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="false" />
  475. <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="false" />
  476. <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="true" />
  477. </MultiDataTrigger.Conditions>
  478. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
  479. </MultiDataTrigger>
  480. <Trigger Property="IsMouseOver" Value="true">
  481. <Setter TargetName="arrow" Property="Fill" Value="{StaticResource color.icon.arrow.accent.hov}" />
  482. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.hov}" />
  483. </Trigger>
  484. <MultiDataTrigger>
  485. <MultiDataTrigger.Conditions>
  486. <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" />
  487. <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false" />
  488. </MultiDataTrigger.Conditions>
  489. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.hov}" />
  490. </MultiDataTrigger>
  491. <MultiDataTrigger>
  492. <MultiDataTrigger.Conditions>
  493. <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" />
  494. <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" />
  495. </MultiDataTrigger.Conditions>
  496. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.hov}" />
  497. </MultiDataTrigger>
  498. <Trigger Property="IsPressed" Value="true">
  499. <Setter TargetName="arrow" Property="Fill" Value="{StaticResource color.icon.arrow.accent.hov}" />
  500. </Trigger>
  501. <Trigger Property="IsFocused" Value="True">
  502. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.focus}" />
  503. <Setter TargetName="templateRoot" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  504. </Trigger>
  505. <Trigger Property="IsChecked" Value="True">
  506. <Setter TargetName="arrow" Property="LayoutTransform">
  507. <Setter.Value>
  508. <RotateTransform Angle="180" />
  509. </Setter.Value>
  510. </Setter>
  511. </Trigger>
  512. <Trigger Property="IsEnabled" Value="false">
  513. <Setter TargetName="arrow" Property="Fill" Value="{StaticResource color.icon.arrow.gray.dis}" />
  514. <Setter TargetName="templateRoot" Property="Background" Value="{StaticResource color.field.bg.dis}" />
  515. <Setter TargetName="templateRoot" Property="BorderBrush" Value="{StaticResource color.field.border.dis}" />
  516. </Trigger>
  517. </ControlTemplate.Triggers>
  518. </ControlTemplate>
  519. </Setter.Value>
  520. </Setter>
  521. </Style>
  522. <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
  523. <Grid
  524. x:Name="templateRoot"
  525. Background="Transparent"
  526. SnapsToDevicePixels="true">
  527. <Grid.ColumnDefinitions>
  528. <ColumnDefinition Width="*" />
  529. <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
  530. </Grid.ColumnDefinitions>
  531. <Popup
  532. x:Name="PART_Popup"
  533. Grid.ColumnSpan="2"
  534. Margin="1"
  535. AllowsTransparency="true"
  536. IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  537. Placement="Bottom"
  538. PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
  539. <Themes:SystemDropShadowChrome
  540. x:Name="shadow"
  541. MinWidth="{Binding ActualWidth, ElementName=templateRoot}"
  542. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  543. Color="Transparent">
  544. <Border
  545. x:Name="dropDownBorder"
  546. Margin="0,4,0,0"
  547. Background="{StaticResource color.sys.layout.anti}"
  548. BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
  549. BorderThickness="0"
  550. CornerRadius="{StaticResource radius.base.m}"
  551. Effect="{StaticResource shadow.neutral.m}">
  552. <ScrollViewer x:Name="DropDownScrollViewer">
  553. <Grid HorizontalAlignment="Stretch" SnapsToDevicePixels="True">
  554. <!-- 圆角背景 -->
  555. <Border
  556. x:Name="Bd"
  557. HorizontalAlignment="Stretch"
  558. Background="{StaticResource color.sys.layout.anti}"
  559. BorderThickness="1"
  560. CornerRadius="7">
  561. <!-- 面板内容 -->
  562. <StackPanel
  563. Margin="4"
  564. HorizontalAlignment="Stretch"
  565. IsItemsHost="True"
  566. KeyboardNavigation.DirectionalNavigation="Contained" />
  567. </Border>
  568. </Grid>
  569. </ScrollViewer>
  570. </Border>
  571. </Themes:SystemDropShadowChrome>
  572. </Popup>
  573. <ToggleButton
  574. x:Name="toggleButton"
  575. Grid.ColumnSpan="2"
  576. Background="{TemplateBinding Background}"
  577. BorderBrush="{TemplateBinding BorderBrush}"
  578. BorderThickness="{TemplateBinding BorderThickness}"
  579. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  580. Style="{StaticResource ComboBoxToggleButton}" />
  581. <ContentPresenter
  582. x:Name="contentPresenter"
  583. Margin="{TemplateBinding Padding}"
  584. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  585. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  586. Content="{TemplateBinding SelectionBoxItem}"
  587. ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
  588. ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
  589. ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
  590. IsHitTestVisible="false"
  591. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  592. </Grid>
  593. <ControlTemplate.Triggers>
  594. <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
  595. <Setter TargetName="shadow" Property="Margin" Value="5" />
  596. </Trigger>
  597. <Trigger Property="HasItems" Value="false">
  598. <Setter TargetName="dropDownBorder" Property="Height" Value="95" />
  599. </Trigger>
  600. <Trigger Property="IsEnabled" Value="false">
  601. <Setter Property="Foreground" Value="{StaticResource color.field.text.dis}"/>
  602. </Trigger>
  603. <MultiTrigger>
  604. <MultiTrigger.Conditions>
  605. <Condition Property="IsGrouping" Value="true" />
  606. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
  607. </MultiTrigger.Conditions>
  608. <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
  609. </MultiTrigger>
  610. </ControlTemplate.Triggers>
  611. </ControlTemplate>
  612. <SolidColorBrush x:Key="TextBox.Static.Background" Color="#FFFFFFFF" />
  613. <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
  614. <Setter Property="OverridesDefaultStyle" Value="true" />
  615. <Setter Property="AllowDrop" Value="true" />
  616. <Setter Property="MinWidth" Value="0" />
  617. <Setter Property="MinHeight" Value="0" />
  618. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  619. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  620. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  621. <Setter Property="Template">
  622. <Setter.Value>
  623. <ControlTemplate TargetType="{x:Type TextBox}">
  624. <ScrollViewer
  625. x:Name="PART_ContentHost"
  626. Background="Transparent"
  627. Focusable="false"
  628. HorizontalScrollBarVisibility="Hidden"
  629. VerticalScrollBarVisibility="Hidden" />
  630. </ControlTemplate>
  631. </Setter.Value>
  632. </Setter>
  633. </Style>
  634. <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
  635. <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
  636. <Grid.ColumnDefinitions>
  637. <ColumnDefinition Width="*" />
  638. <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
  639. </Grid.ColumnDefinitions>
  640. <Popup
  641. x:Name="PART_Popup"
  642. Grid.ColumnSpan="2"
  643. AllowsTransparency="true"
  644. IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
  645. Placement="Bottom"
  646. PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
  647. <Themes:SystemDropShadowChrome
  648. x:Name="shadow"
  649. MinWidth="{Binding ActualWidth, ElementName=templateRoot}"
  650. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  651. Color="Transparent">
  652. <Border
  653. x:Name="dropDownBorder"
  654. Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
  655. BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
  656. BorderThickness="1">
  657. <ScrollViewer x:Name="DropDownScrollViewer">
  658. <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
  659. <Canvas
  660. x:Name="canvas"
  661. Width="0"
  662. Height="0"
  663. HorizontalAlignment="Left"
  664. VerticalAlignment="Top">
  665. <Rectangle
  666. x:Name="opaqueRect"
  667. Width="{Binding ActualWidth, ElementName=dropDownBorder}"
  668. Height="{Binding ActualHeight, ElementName=dropDownBorder}"
  669. Fill="{Binding Background, ElementName=dropDownBorder}" />
  670. </Canvas>
  671. <ItemsPresenter
  672. x:Name="ItemsPresenter"
  673. KeyboardNavigation.DirectionalNavigation="Contained"
  674. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  675. </Grid>
  676. </ScrollViewer>
  677. </Border>
  678. </Themes:SystemDropShadowChrome>
  679. </Popup>
  680. <ToggleButton
  681. x:Name="toggleButton"
  682. Grid.ColumnSpan="2"
  683. Background="{TemplateBinding Background}"
  684. BorderBrush="{TemplateBinding BorderBrush}"
  685. BorderThickness="{TemplateBinding BorderThickness}"
  686. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  687. Style="{StaticResource ComboBoxToggleButton}" />
  688. <Border
  689. x:Name="border"
  690. Margin="3 1 8 1"
  691. Background="{StaticResource TextBox.Static.Background}">
  692. <TextBox
  693. x:Name="PART_EditableTextBox"
  694. Margin="{TemplateBinding Padding}"
  695. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  696. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  697. IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
  698. Style="{StaticResource ComboBoxEditableTextBox}" />
  699. </Border>
  700. </Grid>
  701. <ControlTemplate.Triggers>
  702. <Trigger Property="IsEnabled" Value="false">
  703. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  704. </Trigger>
  705. <Trigger Property="IsKeyboardFocusWithin" Value="true">
  706. <Setter Property="Foreground" Value="Black" />
  707. </Trigger>
  708. <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
  709. <Setter TargetName="shadow" Property="Margin" Value="0,0,5,5" />
  710. <Setter TargetName="shadow" Property="Color" Value="#71000000" />
  711. </Trigger>
  712. <Trigger Property="HasItems" Value="false">
  713. <Setter TargetName="dropDownBorder" Property="Height" Value="95" />
  714. </Trigger>
  715. <MultiTrigger>
  716. <MultiTrigger.Conditions>
  717. <Condition Property="IsGrouping" Value="true" />
  718. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
  719. </MultiTrigger.Conditions>
  720. <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
  721. </MultiTrigger>
  722. <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
  723. <Setter TargetName="opaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
  724. <Setter TargetName="opaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
  725. </Trigger>
  726. </ControlTemplate.Triggers>
  727. </ControlTemplate>
  728. <!-- Design Token ComBobox -->
  729. <Style TargetType="{x:Type ComboBox}">
  730. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
  731. <Setter Property="Background" Value="{StaticResource color.field.bg.def}" />
  732. <Setter Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
  733. <Setter Property="Foreground" Value="{StaticResource color.field.text.act}" />
  734. <Setter Property="BorderThickness" Value="{StaticResource border-width.1}" />
  735. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
  736. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
  737. <Setter Property="VerticalContentAlignment" Value="Center" />
  738. <Setter Property="Padding" Value="8,3,5,3" />
  739. <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
  740. <Setter Property="ScrollViewer.PanningMode" Value="Both" />
  741. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  742. <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}" />
  743. <Style.Triggers>
  744. <Trigger Property="IsEditable" Value="true">
  745. <Setter Property="IsTabStop" Value="false" />
  746. <Setter Property="Padding" Value="2 3 5 3"/>
  747. <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
  748. </Trigger>
  749. </Style.Triggers>
  750. </Style>
  751. <!-- Design Token RadionButton -->
  752. <Style TargetType="{x:Type RadioButton}">
  753. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  754. <Setter Property="Background" Value="{StaticResource color.icon.checkbox-radio.norm.bg}" />
  755. <Setter Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.norm.border}" />
  756. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  757. <Setter Property="BorderThickness" Value="1" />
  758. <Setter Property="Padding" Value="8,0,0,0" />
  759. <Setter Property="Template">
  760. <Setter.Value>
  761. <ControlTemplate TargetType="{x:Type RadioButton}">
  762. <Grid
  763. x:Name="templateRoot"
  764. Background="Transparent"
  765. SnapsToDevicePixels="True">
  766. <Grid.ColumnDefinitions>
  767. <ColumnDefinition Width="Auto" />
  768. <ColumnDefinition Width="*" />
  769. </Grid.ColumnDefinitions>
  770. <Border
  771. x:Name="radioButtonBorder"
  772. Width="14"
  773. Height="14"
  774. HorizontalAlignment="Center"
  775. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  776. Background="{TemplateBinding Background}"
  777. BorderBrush="{TemplateBinding BorderBrush}"
  778. BorderThickness="{TemplateBinding BorderThickness}"
  779. CornerRadius="100">
  780. <Grid x:Name="markGrid" Margin="1.8">
  781. <Ellipse
  782. x:Name="optionMark"
  783. MinWidth="6"
  784. MinHeight="6"
  785. Fill="{StaticResource color.icon.checkbox-radio.sel.bg}"
  786. Opacity="0" />
  787. </Grid>
  788. </Border>
  789. <ContentPresenter
  790. x:Name="contentPresenter"
  791. Grid.Column="1"
  792. Margin="{TemplateBinding Padding}"
  793. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  794. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  795. Focusable="False"
  796. RecognizesAccessKey="True"
  797. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  798. </Grid>
  799. <ControlTemplate.Triggers>
  800. <!--<Trigger Property="HasContent" Value="true">
  801. <Setter Property="Padding" Value="4,-1,0,0" />
  802. </Trigger>-->
  803. <Trigger Property="IsMouseOver" Value="true">
  804. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
  805. </Trigger>
  806. <Trigger Property="IsEnabled" Value="false">
  807. <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.dis.bg}" />
  808. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.dis.border}" />
  809. <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource color.icon.checkbox-radio.dis.fill}" />
  810. </Trigger>
  811. <!--<Trigger Property="IsPressed" Value="true">
  812. <Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Background2}" />
  813. <Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Border}" />
  814. <Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Pressed.Glyph2}" />
  815. </Trigger>-->
  816. <Trigger Property="IsChecked" Value="true">
  817. <Setter TargetName="optionMark" Property="Opacity" Value="1" />
  818. <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
  819. </Trigger>
  820. <Trigger Property="IsChecked" Value="{x:Null}">
  821. <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
  822. </Trigger>
  823. </ControlTemplate.Triggers>
  824. </ControlTemplate>
  825. </Setter.Value>
  826. </Setter>
  827. </Style>
  828. </ResourceDictionary>
  829. </Application.Resources>
  830. </prism:PrismApplication>