终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

599 lignes
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. <DataTrigger Binding="{Binding DisplayMode, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}}" Value="Decade">
  334. <Setter TargetName="PART_MonthView" Property="Visibility" Value="Hidden" />
  335. <Setter TargetName="PART_YearView" Property="Visibility" Value="Visible" />
  336. </DataTrigger>
  337. </ControlTemplate.Triggers>
  338. </ControlTemplate>
  339. </Setter.Value>
  340. </Setter>
  341. </Style>
  342. <!--#endregion-->
  343. <!--#region DropDownButtonStyle-->
  344. <!-- 显示日历的按钮的模板 -->
  345. <Style x:Key="DropDownButtonStyle" TargetType="Button">
  346. <Setter Property="Template">
  347. <Setter.Value>
  348. <ControlTemplate TargetType="{x:Type Button}">
  349. <Grid>
  350. <TextBlock
  351. x:Name="DropDownText"
  352. HorizontalAlignment="Center"
  353. VerticalAlignment="Center"
  354. FontFamily="../Fonts/#iconfont"
  355. FontSize="16"
  356. Foreground="#3aa7f3"
  357. Text="&#xe6ab;" />
  358. </Grid>
  359. <ControlTemplate.Triggers>
  360. <Trigger Property="IsMouseOver" Value="True">
  361. <Setter TargetName="DropDownText" Property="FontSize" Value="18" />
  362. </Trigger>
  363. <Trigger Property="IsPressed" Value="True">
  364. <Setter TargetName="DropDownText" Property="Foreground" Value="#cd8624" />
  365. </Trigger>
  366. </ControlTemplate.Triggers>
  367. </ControlTemplate>
  368. </Setter.Value>
  369. </Setter>
  370. </Style>
  371. <!--#endregion-->
  372. <!--#region DatePickerTextBox样式-->
  373. <Style x:Key="DatePickerTextBoxStyle" TargetType="DatePickerTextBox">
  374. <Setter Property="Background" Value="Transparent" />
  375. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  376. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  377. <Setter Property="Focusable" Value="False" />
  378. <Setter Property="Template">
  379. <Setter.Value>
  380. <ControlTemplate TargetType="{x:Type TextBox}">
  381. <TextBlock
  382. x:Name="tb"
  383. FontSize="{TemplateBinding FontSize}"
  384. Foreground="{TemplateBinding Foreground}"
  385. Text="{TemplateBinding Text}" />
  386. <ControlTemplate.Triggers>
  387. <DataTrigger Binding="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" Value="">
  388. <Setter TargetName="tb" Property="Visibility" Value="Visible" />
  389. </DataTrigger>
  390. </ControlTemplate.Triggers>
  391. </ControlTemplate>
  392. </Setter.Value>
  393. </Setter>
  394. </Style>
  395. <!--#endregion-->
  396. <!--#region PickerStyle-->
  397. <Style x:Key="PickerStyle" TargetType="{x:Type DatePicker}">
  398. <Setter Property="Foreground" Value="#00c2f4" />
  399. <Setter Property="IsTodayHighlighted" Value="True" />
  400. <Setter Property="SelectedDateFormat" Value="Short" />
  401. <Setter Property="Padding" Value="2" />
  402. <Setter Property="BorderThickness" Value="2" />
  403. <Setter Property="VerticalContentAlignment" Value="Center" />
  404. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  405. <!-- Set CalendarStyle to DatePickerCalendarStyle. -->
  406. <Setter Property="CalendarStyle" Value="{DynamicResource DatePickerCalendarStyle}" />
  407. <Setter Property="Width" Value="130" />
  408. <Setter Property="FontSize" Value="12" />
  409. <!--<Setter Property="Height" Value="30" />-->
  410. <Setter Property="Template">
  411. <Setter.Value>
  412. <ControlTemplate TargetType="{x:Type DatePicker}">
  413. <Border
  414. x:Name="br"
  415. Padding="{TemplateBinding Padding}"
  416. Background="{TemplateBinding Background}"
  417. BorderBrush="{TemplateBinding BorderBrush}"
  418. BorderThickness="{TemplateBinding BorderThickness}">
  419. <Grid
  420. x:Name="PART_Root"
  421. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  422. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  423. <Grid.ColumnDefinitions>
  424. <ColumnDefinition Width="*" />
  425. <ColumnDefinition Width="Auto" />
  426. </Grid.ColumnDefinitions>
  427. <Button
  428. x:Name="PART_Button"
  429. Grid.Column="1"
  430. Height="20"
  431. Margin="3,0,3,0"
  432. HorizontalAlignment="Left"
  433. VerticalAlignment="Top"
  434. Background="Transparent"
  435. Focusable="False"
  436. Foreground="{TemplateBinding Foreground}"
  437. Style="{StaticResource DropDownButtonStyle}" />
  438. <DatePickerTextBox
  439. x:Name="PART_TextBox"
  440. Grid.Column="0"
  441. Margin="5,0,0,0"
  442. VerticalAlignment="Center"
  443. Foreground="{TemplateBinding Foreground}"
  444. Style="{StaticResource DatePickerTextBoxStyle}"
  445. Text="{TemplateBinding Text}" />
  446. <Grid
  447. x:Name="PART_DisabledVisual"
  448. Grid.Row="0"
  449. Grid.Column="0"
  450. Grid.ColumnSpan="2"
  451. IsHitTestVisible="False"
  452. Opacity="0">
  453. <Grid.ColumnDefinitions>
  454. <ColumnDefinition Width="*" />
  455. <ColumnDefinition Width="Auto" />
  456. </Grid.ColumnDefinitions>
  457. <Rectangle
  458. Grid.Row="0"
  459. Grid.Column="0"
  460. Fill="#A5FFFFFF"
  461. RadiusX="1"
  462. RadiusY="1" />
  463. <Rectangle
  464. Grid.Row="0"
  465. Grid.Column="1"
  466. Width="19"
  467. Height="18"
  468. Margin="3,0,3,0"
  469. Fill="#A5FFFFFF"
  470. RadiusX="1"
  471. RadiusY="1" />
  472. <Popup
  473. x:Name="PART_Popup"
  474. AllowsTransparency="True"
  475. Placement="Bottom"
  476. PlacementTarget="{Binding ElementName=br}"
  477. PopupAnimation="Slide"
  478. StaysOpen="False" />
  479. </Grid>
  480. </Grid>
  481. <VisualStateManager.VisualStateGroups>
  482. <VisualStateGroup x:Name="CommonStates">
  483. <VisualState x:Name="Normal" />
  484. <VisualState x:Name="Disabled">
  485. <Storyboard>
  486. <DoubleAnimation
  487. Storyboard.TargetName="PART_DisabledVisual"
  488. Storyboard.TargetProperty="Opacity"
  489. To="1"
  490. Duration="0" />
  491. </Storyboard>
  492. </VisualState>
  493. </VisualStateGroup>
  494. </VisualStateManager.VisualStateGroups>
  495. </Border>
  496. <ControlTemplate.Triggers>
  497. <Trigger Property="IsMouseOver" Value="True">
  498. <Setter TargetName="br" Property="BorderBrush" Value="#3aa7f3" />
  499. </Trigger>
  500. </ControlTemplate.Triggers>
  501. </ControlTemplate>
  502. </Setter.Value>
  503. </Setter>
  504. </Style>
  505. <!--#endregion-->
  506. <!--#region Control colors.-->
  507. <Color x:Key="WindowColor">#FFE8EDF9</Color>
  508. <Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color>
  509. <Color x:Key="ContentAreaColorDark">#FF7381F9</Color>
  510. <Color x:Key="DisabledControlLightColor">#FFE8EDF9</Color>
  511. <Color x:Key="DisabledControlDarkColor">#FFC5CBF9</Color>
  512. <Color x:Key="DisabledForegroundColor">#FF888888</Color>
  513. <Color x:Key="SelectedBackgroundColor">#FFC5CBF9</Color>
  514. <Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color>
  515. <Color x:Key="ControlLightColor">White</Color>
  516. <Color x:Key="ControlMediumColor">#FF7381F9</Color>
  517. <Color x:Key="ControlDarkColor">#FF211AA9</Color>
  518. <Color x:Key="ControlMouseOverColor">#FF3843C4</Color>
  519. <Color x:Key="ControlPressedColor">#FF211AA9</Color>
  520. <Color x:Key="GlyphColor">#FF444444</Color>
  521. <Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color>
  522. <!--#endregion-->
  523. <!--#region Border colors-->
  524. <Color x:Key="BorderLightColor">#FFCCCCCC</Color>
  525. <Color x:Key="BorderMediumColor">#FF888888</Color>
  526. <Color x:Key="BorderDarkColor">#FF444444</Color>
  527. <Color x:Key="PressedBorderLightColor">#FF888888</Color>
  528. <Color x:Key="PressedBorderDarkColor">#FF444444</Color>
  529. <Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color>
  530. <Color x:Key="DisabledBorderDarkColor">#FF888888</Color>
  531. <Color x:Key="DefaultBorderBrushDarkColor">Black</Color>
  532. <!--#endregion-->
  533. <!--#region 特定于控制的资源-->
  534. <Color x:Key="HeaderTopColor">#FFC5CBF9</Color>
  535. <Color x:Key="DatagridCurrentCellBorderColor">Black</Color>
  536. <Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color>
  537. <Color x:Key="NavButtonFrameColor">#FF3843C4</Color>
  538. <LinearGradientBrush x:Key="MenuPopupBrush" StartPoint="0.5,0" EndPoint="0.5,1">
  539. <GradientStop Offset="0" Color="{DynamicResource ControlLightColor}" />
  540. <GradientStop Offset="0.5" Color="{DynamicResource ControlMediumColor}" />
  541. <GradientStop Offset="1" Color="{DynamicResource ControlLightColor}" />
  542. </LinearGradientBrush>
  543. <LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" StartPoint="0,0" EndPoint="1,0">
  544. <LinearGradientBrush.GradientStops>
  545. <GradientStopCollection>
  546. <GradientStop Offset="0" Color="#000000FF" />
  547. <GradientStop Offset="0.4" Color="#600000FF" />
  548. <GradientStop Offset="0.6" Color="#600000FF" />
  549. <GradientStop Offset="1" Color="#000000FF" />
  550. </GradientStopCollection>
  551. </LinearGradientBrush.GradientStops>
  552. </LinearGradientBrush>
  553. <!--#endregion-->
  554. </ResourceDictionary>