App.xaml 58 KB

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