App.xaml 58 KB

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