终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

599 lines
29 KiB

  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:system="clr-namespace:System;assembly=System.Runtime">
  5. <!-- 使用该资源字典记得安装Util.Control Nutget包 -->
  6. <!--#region Window窗体-->
  7. <SolidColorBrush x:Key="WindowBackground" Color="#007ACB" />
  8. <SolidColorBrush x:Key="WindowInnerBackground" Color="Transparent" />
  9. <SolidColorBrush x:Key="WindowBorderBrush" Color="#920892" />
  10. <DropShadowEffect
  11. x:Key="WindowDropShadow"
  12. BlurRadius="8"
  13. Direction="0"
  14. Opacity="0.7"
  15. ShadowDepth="0"
  16. Color="Red" />
  17. <SolidColorBrush x:Key="CaptionForeground" Color="White" />
  18. <LinearGradientBrush x:Key="CaptionBackground" StartPoint="0.5,0" EndPoint="0.5,1">
  19. <GradientStop Offset="0" Color="#571457" />
  20. <GradientStop Offset="1" Color="#6A196A" />
  21. </LinearGradientBrush>
  22. <!--#endregion-->
  23. <!--#region MessageBoxX-->
  24. <SolidColorBrush x:Key="InfoForeground" Color="White" />
  25. <SolidColorBrush x:Key="QuestionForeground" Color="#74B80C" />
  26. <SolidColorBrush x:Key="WarningForeground" Color="DarkOrange" />
  27. <SolidColorBrush x:Key="ErrorForeground" Color="#E74E4E" />
  28. <!--#endregion-->
  29. <!--#region WaitingBox-->
  30. <SolidColorBrush x:Key="WaitingBoxBackground" Color="#921692" />
  31. <!--#endregion-->
  32. <!--#region 边框:Menu-->
  33. <DropShadowEffect
  34. x:Key="DefaultDropShadow"
  35. BlurRadius="5"
  36. Direction="315"
  37. Opacity="0.6"
  38. ShadowDepth="2"
  39. Color="Black" />
  40. <!--#endregion-->
  41. <!--#region 输入组件-->
  42. <SolidColorBrush x:Key="TextForeground" Color="Black" />
  43. <SolidColorBrush x:Key="TextBackground" Color="White" />
  44. <SolidColorBrush x:Key="TextSelectionBrush" Color="#8F8787" />
  45. <!--#endregion-->
  46. <!--#region TextBox默认Label颜色-->
  47. <SolidColorBrush x:Key="TextLabelBackground" Color="#508AB6" />
  48. <!--#endregion-->
  49. <!--#region 输入框-->
  50. <SolidColorBrush x:Key="ControlBorderBrush" Color="#999C9F" />
  51. <SolidColorBrush x:Key="MouseOverBorderBrush" Color="#F6D1D1" />
  52. <SolidColorBrush x:Key="FocusBackground" Color="#365080" />
  53. <SolidColorBrush x:Key="FocusBorderBrush" Color="#EBCECE" />
  54. <!--#endregion-->
  55. <!--#region ScrollBar-->
  56. <SolidColorBrush x:Key="ScrollBarForeround" Color="#877F7F" />
  57. <SolidColorBrush x:Key="ScrollBarBackground" Color="#3E3E42" />
  58. <!--#endregion-->
  59. <!--#region ItemsControl:DataGrid,Tree-->
  60. <system:Double x:Key="HeaderFontSize">14</system:Double>
  61. <SolidColorBrush x:Key="HeaderBorderBrush" Color="#A6FFA500" />
  62. <SolidColorBrush x:Key="HeaderBackground" Color="Purple" />
  63. <SolidColorBrush x:Key="ItemsContentBackground" Color="#1389D7" />
  64. <SolidColorBrush x:Key="ItemsAlternationContentBackground" Color="#128EE0" />
  65. <SolidColorBrush x:Key="GridLinesBrush" Color="#A6D0C2A7" />
  66. <SolidColorBrush x:Key="ItemSelectedForeground" Color="red" />
  67. <SolidColorBrush x:Key="ItemSelectedBackground" Color="#BC8BEA" />
  68. <SolidColorBrush x:Key="ItemMouseOverBackground" Color="#BC8BEA" />
  69. <SolidColorBrush x:Key="ItemMouseOverForeground" Color="White" />
  70. <!--#endregion-->
  71. <!--#region 高亮:日历Today-->
  72. <SolidColorBrush x:Key="ItemHighlighteBackground" Color="#BC8BEA" />
  73. <SolidColorBrush x:Key="ItemHighlighteForeground" Color="#BC8BEA" />
  74. <!--#endregion-->
  75. <!--#region 普通无背景按钮-->
  76. <SolidColorBrush x:Key="CheckedForeground" Color="#F7B63E" />
  77. <SolidColorBrush x:Key="MouseOverForeground" Color="Orange" />
  78. <SolidColorBrush x:Key="PressedForeground" Color="#F7B63E" />
  79. <SolidColorBrush x:Key="LinkForeground" Color="#0816BB" />
  80. <!--#endregion-->
  81. <!--#region Popup,ComboBox-->
  82. <SolidColorBrush x:Key="PopupBackground" Color="red" />
  83. <!--#endregion-->
  84. <!--#region Button-->
  85. <SolidColorBrush x:Key="ButtonBackground" Color="#1D4A9A" />
  86. <SolidColorBrush x:Key="ButtonForeground" Color="White" />
  87. <SolidColorBrush x:Key="ButtonMouseOverBackground" Color="Orange" />
  88. <SolidColorBrush x:Key="ButtonMouseOverForeground" Color="White" />
  89. <SolidColorBrush x:Key="ButtonPressedBackground" Color="DarkOrange" />
  90. <SolidColorBrush x:Key="ButtonPressedForeground" Color="White" />
  91. <!--#endregion-->
  92. <!--#region Menu-->
  93. <SolidColorBrush x:Key="MenuForeground" Color="#920892" />
  94. <SolidColorBrush x:Key="MenuBackground" Color="#DDD1D1" />
  95. <SolidColorBrush x:Key="MenuBorderBrush" Color="DarkBlue" />
  96. <SolidColorBrush x:Key="MenuMouseOverBackground" Color="#0D3CD2" />
  97. <SolidColorBrush x:Key="MenuMouseOverForeground" Color="White" />
  98. <SolidColorBrush x:Key="MenuPressedBackground" Color="#082CA0" />
  99. <SolidColorBrush x:Key="MenuPressedForeground" Color="White" />
  100. <!--#endregion-->
  101. <!--#region State brush-->
  102. <SolidColorBrush x:Key="SuccessfulfaiBrush" Color="#16B32A" />
  103. <SolidColorBrush x:Key="FailedBrush" Color="#B92222" />
  104. <!--#endregion-->
  105. <!--#region DatePickerCalendarStyle-->
  106. <Style x:Key="DatePickerCalendarStyle" TargetType="{x:Type Calendar}">
  107. <Setter Property="Background" Value="#103153" />
  108. <Setter Property="FontSize" Value="18" />
  109. <Setter Property="CalendarButtonStyle" Value="{DynamicResource ButtonStyle}" />
  110. <Setter Property="CalendarDayButtonStyle" Value="{DynamicResource DayButtonStyle}" />
  111. <Setter Property="BorderBrush" Value="Purple" />
  112. <Setter Property="CalendarItemStyle" Value="{DynamicResource CalendarItemsStyle}" />
  113. </Style>
  114. <!--#endregion-->
  115. <!--#region 年,月按钮样式-->
  116. <Style x:Key="ButtonStyle" TargetType="CalendarButton">
  117. <Setter Property="Background" Value="#103153" />
  118. <Setter Property="FontSize" Value="14" />
  119. <Setter Property="BorderBrush" Value="Transparent" />
  120. <Setter Property="Template">
  121. <Setter.Value>
  122. <ControlTemplate TargetType="{x:Type CalendarButton}">
  123. <Grid x:Name="Grid" Margin="0">
  124. <Border x:Name="Bg" Background="{TemplateBinding Background}" />
  125. <ContentPresenter
  126. x:Name="NormalText"
  127. Margin="5,2,5,2"
  128. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  129. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  130. TextElement.Foreground="{TemplateBinding Foreground}" />
  131. </Grid>
  132. <ControlTemplate.Triggers>
  133. <Trigger Property="IsMouseOver" Value="True">
  134. <Setter Property="Background" Value="Purple" />
  135. <Setter Property="Foreground" Value="White" />
  136. </Trigger>
  137. </ControlTemplate.Triggers>
  138. </ControlTemplate>
  139. </Setter.Value>
  140. </Setter>
  141. </Style>
  142. <!--#endregion-->
  143. <!--#region DayButtonStyle-->
  144. <Style x:Key="DayButtonStyle" TargetType="CalendarDayButton">
  145. <Setter Property="Background" Value="#103153" />
  146. <Setter Property="FontSize" Value="14" />
  147. <Setter Property="Template">
  148. <Setter.Value>
  149. <ControlTemplate TargetType="{x:Type CalendarDayButton}">
  150. <Grid x:Name="Grid" Margin="0">
  151. <Border
  152. x:Name="Bg"
  153. Background="#103153"
  154. BorderBrush="Purple"
  155. BorderThickness="0" />
  156. <ContentPresenter
  157. x:Name="NormalText"
  158. Margin="5,2,5,2"
  159. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  160. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  161. TextElement.Foreground="{TemplateBinding Foreground}" />
  162. </Grid>
  163. <ControlTemplate.Triggers>
  164. <!-- 不在当月的日期 -->
  165. <Trigger Property="IsInactive" Value="True">
  166. <Setter TargetName="Grid" Property="Opacity" Value="0.5" />
  167. </Trigger>
  168. <Trigger Property="IsSelected" Value="True">
  169. <Setter Property="Foreground" Value="red" />
  170. </Trigger>
  171. <Trigger Property="IsToday" Value="True">
  172. <Setter Property="Foreground" Value="yellow" />
  173. </Trigger>
  174. <Trigger Property="IsMouseOver" Value="True">
  175. <Setter Property="Foreground" Value="Aqua" />
  176. </Trigger>
  177. </ControlTemplate.Triggers>
  178. </ControlTemplate>
  179. </Setter.Value>
  180. </Setter>
  181. </Style>
  182. <!--#endregion-->
  183. <!--#region FButton_Transparency-->
  184. <Style x:Key="FButton_Transparency" TargetType="{x:Type Button}">
  185. <Setter Property="Background" Value="White" />
  186. <Setter Property="Foreground" Value="white" />
  187. <Setter Property="FontFamily" Value="../Fonts/#iconfont" />
  188. <Setter Property="HorizontalContentAlignment" Value="Center" />
  189. <Setter Property="Height" Value="Auto" />
  190. <Setter Property="Width" Value="Auto" />
  191. <Setter Property="FontSize" Value="13" />
  192. <Setter Property="Padding" Value="3,1,3,1" />
  193. <Setter Property="Cursor" Value="Hand" />
  194. <Setter Property="BorderBrush" Value="Transparent" />
  195. <Setter Property="Template">
  196. <Setter.Value>
  197. <ControlTemplate TargetType="{x:Type Button}">
  198. <Border
  199. Background="Transparent"
  200. BorderBrush="Transparent"
  201. BorderThickness="1">
  202. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  203. </Border>
  204. </ControlTemplate>
  205. </Setter.Value>
  206. </Setter>
  207. <Style.Triggers>
  208. <Trigger Property="IsMouseOver" Value="True">
  209. <Setter Property="Background" Value="Purple" />
  210. </Trigger>
  211. </Style.Triggers>
  212. </Style>
  213. <!--#endregion-->
  214. <!--#region CalendarItemsStyle-->
  215. <Style x:Key="CalendarItemsStyle" TargetType="{x:Type CalendarItem}">
  216. <Setter Property="Template">
  217. <Setter.Value>
  218. <ControlTemplate TargetType="{x:Type CalendarItem}">
  219. <ControlTemplate.Resources>
  220. <!-- 头部星期样式 -->
  221. <DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}">
  222. <TextBlock
  223. Margin="0,6,0,6"
  224. HorizontalAlignment="Center"
  225. VerticalAlignment="Center"
  226. FontSize="{StaticResource HeaderFontSize}"
  227. FontWeight="Bold"
  228. Foreground="{StaticResource PressedForeground}"
  229. Opacity="0.8"
  230. Text="{Binding}" />
  231. </DataTemplate>
  232. </ControlTemplate.Resources>
  233. <Grid x:Name="PART_Root">
  234. <Border
  235. Margin="{TemplateBinding Margin}"
  236. Background="{TemplateBinding Background}"
  237. BorderBrush="{TemplateBinding BorderBrush}"
  238. BorderThickness="1">
  239. <Grid Margin="2">
  240. <Grid.ColumnDefinitions>
  241. <ColumnDefinition Width="Auto" />
  242. </Grid.ColumnDefinitions>
  243. <Grid.RowDefinitions>
  244. <RowDefinition Height="Auto" />
  245. <RowDefinition Height="*" />
  246. </Grid.RowDefinitions>
  247. <!-- Header -->
  248. <Grid
  249. Grid.Row="0"
  250. HorizontalAlignment="Stretch"
  251. Background="Transparent">
  252. <Grid.ColumnDefinitions>
  253. <ColumnDefinition Width="*" />
  254. <ColumnDefinition Width="2*" />
  255. <ColumnDefinition Width="*" />
  256. </Grid.ColumnDefinitions>
  257. <Button
  258. x:Name="PART_PreviousButton"
  259. Grid.Column="0"
  260. Content="&#xe601;"
  261. Focusable="False"
  262. Style="{StaticResource FButton_Transparency}" />
  263. <Button
  264. x:Name="PART_HeaderButton"
  265. Grid.Column="1"
  266. Focusable="False"
  267. Style="{StaticResource FButton_Transparency}" />
  268. <Button
  269. x:Name="PART_NextButton"
  270. Grid.Column="2"
  271. Content="&#xe600;"
  272. Focusable="False"
  273. Style="{StaticResource FButton_Transparency}" />
  274. </Grid>
  275. <!-- PART_MonthView -->
  276. <Grid
  277. x:Name="PART_MonthView"
  278. Grid.Row="1"
  279. Margin="6,1,6,6"
  280. HorizontalAlignment="Stretch"
  281. VerticalAlignment="Stretch"
  282. Visibility="Visible">
  283. <Grid.ColumnDefinitions>
  284. <ColumnDefinition Width="*" />
  285. <ColumnDefinition Width="*" />
  286. <ColumnDefinition Width="*" />
  287. <ColumnDefinition Width="*" />
  288. <ColumnDefinition Width="*" />
  289. <ColumnDefinition Width="*" />
  290. <ColumnDefinition Width="*" />
  291. </Grid.ColumnDefinitions>
  292. <Grid.RowDefinitions>
  293. <RowDefinition Height="*" />
  294. <RowDefinition Height="*" />
  295. <RowDefinition Height="*" />
  296. <RowDefinition Height="*" />
  297. <RowDefinition Height="*" />
  298. <RowDefinition Height="*" />
  299. <RowDefinition Height="*" />
  300. </Grid.RowDefinitions>
  301. </Grid>
  302. <!-- PART_YearView -->
  303. <Grid
  304. x:Name="PART_YearView"
  305. Grid.Row="1"
  306. Margin="6,10,6,10"
  307. HorizontalAlignment="Stretch"
  308. VerticalAlignment="Stretch"
  309. Visibility="Hidden">
  310. <Grid.ColumnDefinitions>
  311. <ColumnDefinition Width="*" />
  312. <ColumnDefinition Width="*" />
  313. <ColumnDefinition Width="*" />
  314. <ColumnDefinition Width="*" />
  315. </Grid.ColumnDefinitions>
  316. <Grid.RowDefinitions>
  317. <RowDefinition Height="*" />
  318. <RowDefinition Height="*" />
  319. <RowDefinition Height="*" />
  320. </Grid.RowDefinitions>
  321. </Grid>
  322. </Grid>
  323. </Border>
  324. </Grid>
  325. <ControlTemplate.Triggers>
  326. <Trigger Property="IsEnabled" Value="False">
  327. <Setter TargetName="PART_Root" Property="Opacity" Value="{StaticResource DisableOpacity}" />
  328. </Trigger>
  329. <DataTrigger Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}" Value="Year">
  330. <Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" />
  331. <Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" />
  332. </DataTrigger>
  333. <!-- Decade 美 ['dɛked] n. 十年,十年期;十 -->
  334. <DataTrigger Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}" Value="Decade">
  335. <Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" />
  336. <Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" />
  337. </DataTrigger>
  338. </ControlTemplate.Triggers>
  339. </ControlTemplate>
  340. </Setter.Value>
  341. </Setter>
  342. </Style>
  343. <!--#endregion-->
  344. <!--#region DropDownButtonStyle-->
  345. <!-- 显示日历的按钮的模板 -->
  346. <Style x:Key="DropDownButtonStyle" TargetType="Button">
  347. <Setter Property="Template">
  348. <Setter.Value>
  349. <ControlTemplate TargetType="{x:Type Button}">
  350. <Grid>
  351. <TextBlock
  352. x:Name="DropDownText"
  353. HorizontalAlignment="Center"
  354. VerticalAlignment="Center"
  355. FontFamily="../Fonts/#iconfont"
  356. FontSize="16"
  357. Foreground="#3aa7f3"
  358. Text="&#xe6ab;" />
  359. </Grid>
  360. <ControlTemplate.Triggers>
  361. <Trigger Property="IsMouseOver" Value="True">
  362. <Setter TargetName="DropDownText" Property="FontSize" Value="18" />
  363. </Trigger>
  364. <Trigger Property="IsPressed" Value="True">
  365. <Setter TargetName="DropDownText" Property="Foreground" Value="#cd8624" />
  366. </Trigger>
  367. </ControlTemplate.Triggers>
  368. </ControlTemplate>
  369. </Setter.Value>
  370. </Setter>
  371. </Style>
  372. <!--#endregion-->
  373. <!--#region DatePickerTextBox样式-->
  374. <Style x:Key="DatePickerTextBoxStyle" TargetType="DatePickerTextBox">
  375. <Setter Property="Background" Value="Transparent" />
  376. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  377. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  378. <Setter Property="Focusable" Value="False" />
  379. <Setter Property="Template">
  380. <Setter.Value>
  381. <ControlTemplate TargetType="{x:Type TextBox}">
  382. <TextBlock
  383. x:Name="tb"
  384. FontSize="{TemplateBinding FontSize}"
  385. Foreground="{TemplateBinding Foreground}"
  386. Text="{TemplateBinding Text}" />
  387. <ControlTemplate.Triggers>
  388. <DataTrigger Binding="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" Value="">
  389. <Setter TargetName="tb" Property="Visibility" Value="Visible" />
  390. </DataTrigger>
  391. </ControlTemplate.Triggers>
  392. </ControlTemplate>
  393. </Setter.Value>
  394. </Setter>
  395. </Style>
  396. <!--#endregion-->
  397. <!--#region PickerStyle-->
  398. <Style x:Key="PickerStyle" TargetType="{x:Type DatePicker}">
  399. <Setter Property="Foreground" Value="#00c2f4" />
  400. <Setter Property="IsTodayHighlighted" Value="True" />
  401. <Setter Property="SelectedDateFormat" Value="Short" />
  402. <Setter Property="Padding" Value="2" />
  403. <Setter Property="BorderThickness" Value="2" />
  404. <Setter Property="VerticalContentAlignment" Value="Center" />
  405. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  406. <!-- Set CalendarStyle to DatePickerCalendarStyle. -->
  407. <Setter Property="CalendarStyle" Value="{DynamicResource DatePickerCalendarStyle}" />
  408. <Setter Property="Width" Value="130" />
  409. <Setter Property="FontSize" Value="12" />
  410. <!--<Setter Property="Height" Value="30" />-->
  411. <Setter Property="Template">
  412. <Setter.Value>
  413. <ControlTemplate TargetType="{x:Type DatePicker}">
  414. <Border
  415. x:Name="br"
  416. Padding="{TemplateBinding Padding}"
  417. Background="{TemplateBinding Background}"
  418. BorderBrush="{TemplateBinding BorderBrush}"
  419. BorderThickness="{TemplateBinding BorderThickness}">
  420. <Grid
  421. x:Name="PART_Root"
  422. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  423. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  424. <Grid.ColumnDefinitions>
  425. <ColumnDefinition Width="*" />
  426. <ColumnDefinition Width="Auto" />
  427. </Grid.ColumnDefinitions>
  428. <Button
  429. x:Name="PART_Button"
  430. Grid.Column="1"
  431. Height="20"
  432. Margin="3,0,3,0"
  433. HorizontalAlignment="Left"
  434. VerticalAlignment="Top"
  435. Background="Transparent"
  436. Focusable="False"
  437. Foreground="{TemplateBinding Foreground}"
  438. Style="{StaticResource DropDownButtonStyle}" />
  439. <DatePickerTextBox
  440. x:Name="PART_TextBox"
  441. Grid.Column="0"
  442. Margin="5,0,0,0"
  443. VerticalAlignment="Center"
  444. Foreground="{TemplateBinding Foreground}"
  445. Style="{StaticResource DatePickerTextBoxStyle}"
  446. Text="{TemplateBinding Text}" />
  447. <Grid
  448. x:Name="PART_DisabledVisual"
  449. Grid.Row="0"
  450. Grid.Column="0"
  451. Grid.ColumnSpan="2"
  452. IsHitTestVisible="False"
  453. Opacity="0">
  454. <Grid.ColumnDefinitions>
  455. <ColumnDefinition Width="*" />
  456. <ColumnDefinition Width="Auto" />
  457. </Grid.ColumnDefinitions>
  458. <Rectangle
  459. Grid.Row="0"
  460. Grid.Column="0"
  461. Fill="#A5FFFFFF"
  462. RadiusX="1"
  463. RadiusY="1" />
  464. <Rectangle
  465. Grid.Row="0"
  466. Grid.Column="1"
  467. Width="19"
  468. Height="18"
  469. Margin="3,0,3,0"
  470. Fill="#A5FFFFFF"
  471. RadiusX="1"
  472. RadiusY="1" />
  473. <Popup
  474. x:Name="PART_Popup"
  475. AllowsTransparency="True"
  476. Placement="Bottom"
  477. PlacementTarget="{Binding ElementName=br}"
  478. PopupAnimation="Slide"
  479. StaysOpen="False" />
  480. </Grid>
  481. </Grid>
  482. <VisualStateManager.VisualStateGroups>
  483. <VisualStateGroup x:Name="CommonStates">
  484. <VisualState x:Name="Normal" />
  485. <VisualState x:Name="Disabled">
  486. <Storyboard>
  487. <DoubleAnimation
  488. Storyboard.TargetName="PART_DisabledVisual"
  489. Storyboard.TargetProperty="Opacity"
  490. To="1"
  491. Duration="0" />
  492. </Storyboard>
  493. </VisualState>
  494. </VisualStateGroup>
  495. </VisualStateManager.VisualStateGroups>
  496. </Border>
  497. <ControlTemplate.Triggers>
  498. <Trigger Property="IsMouseOver" Value="True">
  499. <Setter TargetName="br" Property="BorderBrush" Value="#3aa7f3" />
  500. </Trigger>
  501. </ControlTemplate.Triggers>
  502. </ControlTemplate>
  503. </Setter.Value>
  504. </Setter>
  505. </Style>
  506. <!--#endregion-->
  507. <!--#region Control colors.-->
  508. <Color x:Key="WindowColor">#FFE8EDF9</Color>
  509. <Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color>
  510. <Color x:Key="ContentAreaColorDark">#FF7381F9</Color>
  511. <Color x:Key="DisabledControlLightColor">#FFE8EDF9</Color>
  512. <Color x:Key="DisabledControlDarkColor">#FFC5CBF9</Color>
  513. <Color x:Key="DisabledForegroundColor">#FF888888</Color>
  514. <Color x:Key="SelectedBackgroundColor">#FFC5CBF9</Color>
  515. <Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color>
  516. <Color x:Key="ControlLightColor">White</Color>
  517. <Color x:Key="ControlMediumColor">#FF7381F9</Color>
  518. <Color x:Key="ControlDarkColor">#FF211AA9</Color>
  519. <Color x:Key="ControlMouseOverColor">#FF3843C4</Color>
  520. <Color x:Key="ControlPressedColor">#FF211AA9</Color>
  521. <Color x:Key="GlyphColor">#FF444444</Color>
  522. <Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color>
  523. <!--#endregion-->
  524. <!--#region Border colors-->
  525. <Color x:Key="BorderLightColor">#FFCCCCCC</Color>
  526. <Color x:Key="BorderMediumColor">#FF888888</Color>
  527. <Color x:Key="BorderDarkColor">#FF444444</Color>
  528. <Color x:Key="PressedBorderLightColor">#FF888888</Color>
  529. <Color x:Key="PressedBorderDarkColor">#FF444444</Color>
  530. <Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color>
  531. <Color x:Key="DisabledBorderDarkColor">#FF888888</Color>
  532. <Color x:Key="DefaultBorderBrushDarkColor">Black</Color>
  533. <!--#endregion-->
  534. <!--#region 特定于控制的资源-->
  535. <Color x:Key="HeaderTopColor">#FFC5CBF9</Color>
  536. <Color x:Key="DatagridCurrentCellBorderColor">Black</Color>
  537. <Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color>
  538. <Color x:Key="NavButtonFrameColor">#FF3843C4</Color>
  539. <LinearGradientBrush x:Key="MenuPopupBrush" StartPoint="0.5,0" EndPoint="0.5,1">
  540. <GradientStop Offset="0" Color="{DynamicResource ControlLightColor}" />
  541. <GradientStop Offset="0.5" Color="{DynamicResource ControlMediumColor}" />
  542. <GradientStop Offset="1" Color="{DynamicResource ControlLightColor}" />
  543. </LinearGradientBrush>
  544. <LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" StartPoint="0,0" EndPoint="1,0">
  545. <LinearGradientBrush.GradientStops>
  546. <GradientStopCollection>
  547. <GradientStop Offset="0" Color="#000000FF" />
  548. <GradientStop Offset="0.4" Color="#600000FF" />
  549. <GradientStop Offset="0.6" Color="#600000FF" />
  550. <GradientStop Offset="1" Color="#000000FF" />
  551. </GradientStopCollection>
  552. </LinearGradientBrush.GradientStops>
  553. </LinearGradientBrush>
  554. <!--#endregion-->
  555. </ResourceDictionary>