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