App.xaml 59 KB

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