终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

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