App.xaml 58 KB

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