终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

146 řádky
6.3 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:con="clr-namespace:BPASmartClient.CustomResource.Converters">
  5. <!-- 文本框的字体颜色 -->
  6. <SolidColorBrush x:Key="TextBlockForeground" Color="#9934F7F7" />
  7. <!-- 表格头边框颜色 -->
  8. <SolidColorBrush x:Key="TitleBorderColor" Color="#FF2AB2E7" />
  9. <!-- 表格头字体颜色 -->
  10. <SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
  11. <!-- 数据表边框颜色 -->
  12. <SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
  13. <!--#region 颜色资源-->
  14. <SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
  15. <SolidColorBrush x:Key="tabColor" Color="#FF2AB2E7" />
  16. <SolidColorBrush x:Key="bordColor" Color="#332AB2E7" />
  17. <!--#endregion-->
  18. <!--#region 值转换器-->
  19. <con:DataTableRedundantConverter x:Key="tabConvert" />
  20. <con:StatusIconConverter x:Key="StatusIconConverter" />
  21. <con:ForegroundConverter x:Key="ForegroundConverter" />
  22. <!--#endregion-->
  23. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  24. <Setter Property="VerticalAlignment" Value="Center" />
  25. <Setter Property="HorizontalAlignment" Value="Right" />
  26. <Setter Property="Foreground" Value="{StaticResource FontColor}" />
  27. <Setter Property="FontSize" Value="20" />
  28. </Style>
  29. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  30. <Setter Property="FontFamily" Value="楷体" />
  31. <Setter Property="FontSize" Value="22" />
  32. <Setter Property="VerticalContentAlignment" Value="Center" />
  33. <Setter Property="Width" Value="188" />
  34. <Setter Property="Padding" Value="6,0,0,0" />
  35. <Setter Property="Height" Value="37" />
  36. <Setter Property="BorderThickness" Value="0" />
  37. <Setter Property="Foreground" Value="#009dff" />
  38. <Setter Property="BorderBrush" Value="#009dff" />
  39. <Setter Property="CaretBrush" Value="#009dff" />
  40. <Setter Property="VerticalAlignment" Value="Center" />
  41. <Setter Property="Background">
  42. <Setter.Value>
  43. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/textBox.png" Stretch="Fill" />
  44. </Setter.Value>
  45. </Setter>
  46. </Style>
  47. <Style x:Key="InputTextboxStyle" TargetType="TextBox">
  48. <Setter Property="Margin" Value="5,0,0,0" />
  49. <Setter Property="BorderThickness" Value="0" />
  50. <Setter Property="HorizontalAlignment" Value="Left" />
  51. <Setter Property="Width" Value="150" />
  52. <Setter Property="Height" Value="40" />
  53. <Setter Property="CaretBrush" Value="{StaticResource TitleBorderColor}" />
  54. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  55. <Setter Property="VerticalContentAlignment" Value="Center" />
  56. <Setter Property="FontSize" Value="14" />
  57. <Setter Property="Background" Value="Transparent" />
  58. <Setter Property="VerticalAlignment" Value="Center" />
  59. </Style>
  60. <Style x:Key="ControlButtonStyle" TargetType="Button">
  61. <Setter Property="Margin" Value="0" />
  62. <Setter Property="FontSize" Value="18" />
  63. <Setter Property="Foreground" Value="#FFF53F62" />
  64. <Setter Property="FontWeight" Value="SemiBold" />
  65. <Setter Property="FontFamily" Value="楷体" />
  66. <Setter Property="VerticalContentAlignment" Value="Center" />
  67. <Setter Property="Template">
  68. <Setter.Value>
  69. <ControlTemplate TargetType="Button">
  70. <Border
  71. Name="TitleBarBr"
  72. BorderBrush="#00c2f4"
  73. BorderThickness="0"
  74. CornerRadius="0"
  75. Opacity="0.8">
  76. <ContentPresenter
  77. Margin="{TemplateBinding Margin}"
  78. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  79. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  80. <Border.Background>
  81. <ImageBrush
  82. ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png"
  83. Opacity="0.8"
  84. Stretch="Fill" />
  85. </Border.Background>
  86. </Border>
  87. <ControlTemplate.Triggers>
  88. <Trigger Property="IsMouseOver" Value="true">
  89. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  90. </Trigger>
  91. </ControlTemplate.Triggers>
  92. </ControlTemplate>
  93. </Setter.Value>
  94. </Setter>
  95. </Style>
  96. <Style x:Key="TitleTextblockStyle" TargetType="TextBlock">
  97. <Setter Property="FontSize" Value="16" />
  98. <Setter Property="HorizontalAlignment" Value="Center" />
  99. <Setter Property="VerticalAlignment" Value="Center" />
  100. <Setter Property="Foreground" Value="{StaticResource tabColor}" />
  101. <Setter Property="FontFamily" Value="楷体" />
  102. <Setter Property="FontWeight" Value="SemiBold" />
  103. </Style>
  104. <Style x:Key="UserItemContainerStyle" TargetType="ListBoxItem">
  105. <Style.Resources>
  106. <!-- SelectedItem with focus -->
  107. <SolidColorBrush
  108. x:Key="{x:Static SystemColors.HighlightBrushKey}"
  109. Opacity=".4"
  110. Color="White" />
  111. <!-- SelectedItem without focus -->
  112. <SolidColorBrush
  113. x:Key="{x:Static SystemColors.ControlBrushKey}"
  114. Opacity=".4"
  115. Color="White" />
  116. </Style.Resources>
  117. <!-- 设置触发器 -->
  118. <Style.Triggers>
  119. <Trigger Property="IsMouseOver" Value="true">
  120. <Setter Property="Background" Value="White" />
  121. <Setter Property="Foreground" Value="White" />
  122. </Trigger>
  123. <Trigger Property="IsFocused" Value="true">
  124. <Setter Property="Background" Value="White" />
  125. <Setter Property="Foreground" Value="White" />
  126. </Trigger>
  127. </Style.Triggers>
  128. </Style>
  129. </ResourceDictionary>