App.xaml 59 KB

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