终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

209 Zeilen
9.2 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. <!--#region 用户输入框样式-->
  41. <!--
  42. <Style x:Key="UserTextBoxStyle" TargetType="TextBox">
  43. <Setter Property="Background" Value="Transparent" />
  44. <Setter Property="CaretBrush" Value="#009DFF" />
  45. <Setter Property="Foreground" Value="#009dff" />
  46. <Setter Property="BorderBrush" Value="#009dff" />
  47. <Setter Property="Template">
  48. <Setter.Value>
  49. <ControlTemplate TargetType="TextBox">
  50. <Border
  51. x:Name="border"
  52. Background="{TemplateBinding Background}"
  53. BorderBrush="{TemplateBinding BorderBrush}"
  54. BorderThickness="{TemplateBinding BorderThickness}"
  55. CornerRadius="0"
  56. Opacity="0.8"
  57. SnapsToDevicePixels="true">
  58. <Grid>
  59. -->
  60. <!--<Grid.ColumnDefinitions>
  61. <ColumnDefinition Width="40" />
  62. <ColumnDefinition />
  63. </Grid.ColumnDefinitions>-->
  64. <!--
  65. <Image Source="/BPASmartClient.CustomResource;component/Image/textBox.png" Stretch="Fill" />
  66. -->
  67. <!--<TextBlock
  68. Name="markText"
  69. Grid.Column="1"
  70. Margin="10,0"
  71. HorizontalAlignment="Left"
  72. VerticalAlignment="Center"
  73. FontSize="{TemplateBinding FontSize}"
  74. Foreground="#88009dff"
  75. Text="请输入账号名称"
  76. Visibility="Collapsed" />-->
  77. <!--
  78. <ScrollViewer
  79. x:Name="PART_ContentHost"
  80. Grid.Column="1"
  81. MinHeight="20"
  82. VerticalAlignment="Center"
  83. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  84. </Grid>
  85. </Border>
  86. <ControlTemplate.Triggers>
  87. <Trigger Property="IsEnabled" Value="false">
  88. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  89. </Trigger>
  90. <Trigger Property="IsMouseOver" Value="true">
  91. <Setter TargetName="border" Property="Opacity" Value="1" />
  92. </Trigger>
  93. <Trigger Property="IsKeyboardFocused" Value="true">
  94. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  95. </Trigger>
  96. -->
  97. <!--<DataTrigger Binding="{Binding Path=Text, RelativeSource={RelativeSource Mode=self}}" Value="">
  98. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  99. </DataTrigger>-->
  100. <!--
  101. </ControlTemplate.Triggers>
  102. </ControlTemplate>
  103. </Setter.Value>
  104. </Setter>
  105. </Style>
  106. -->
  107. <!--#endregion-->
  108. <Style x:Key="InputTextboxStyle" TargetType="TextBox">
  109. <Setter Property="Margin" Value="5,0,0,0" />
  110. <Setter Property="BorderThickness" Value="0" />
  111. <Setter Property="HorizontalAlignment" Value="Left" />
  112. <Setter Property="Width" Value="150" />
  113. <Setter Property="Height" Value="40" />
  114. <Setter Property="CaretBrush" Value="{StaticResource TitleBorderColor}" />
  115. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  116. <Setter Property="VerticalContentAlignment" Value="Center" />
  117. <Setter Property="FontSize" Value="14" />
  118. <Setter Property="Background" Value="Transparent" />
  119. <Setter Property="VerticalAlignment" Value="Center" />
  120. </Style>
  121. <Style x:Key="ControlButtonStyle" TargetType="Button">
  122. <Setter Property="Margin" Value="0" />
  123. <Setter Property="FontSize" Value="18" />
  124. <Setter Property="Foreground" Value="#FFF53F62" />
  125. <Setter Property="FontWeight" Value="SemiBold" />
  126. <Setter Property="FontFamily" Value="楷体" />
  127. <Setter Property="VerticalContentAlignment" Value="Center" />
  128. <Setter Property="Template">
  129. <Setter.Value>
  130. <ControlTemplate TargetType="Button">
  131. <Border
  132. Name="TitleBarBr"
  133. BorderBrush="#00c2f4"
  134. BorderThickness="0"
  135. CornerRadius="0"
  136. Opacity="0.8">
  137. <ContentPresenter
  138. Margin="{TemplateBinding Margin}"
  139. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  140. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  141. <Border.Background>
  142. <ImageBrush
  143. ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png"
  144. Opacity="0.8"
  145. Stretch="Fill" />
  146. </Border.Background>
  147. </Border>
  148. <ControlTemplate.Triggers>
  149. <Trigger Property="IsMouseOver" Value="true">
  150. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  151. </Trigger>
  152. </ControlTemplate.Triggers>
  153. </ControlTemplate>
  154. </Setter.Value>
  155. </Setter>
  156. </Style>
  157. <Style x:Key="TitleTextblockStyle" TargetType="TextBlock">
  158. <Setter Property="FontSize" Value="16" />
  159. <Setter Property="HorizontalAlignment" Value="Center" />
  160. <Setter Property="VerticalAlignment" Value="Center" />
  161. <Setter Property="Foreground" Value="{StaticResource tabColor}" />
  162. <Setter Property="FontFamily" Value="楷体" />
  163. <Setter Property="FontWeight" Value="SemiBold" />
  164. </Style>
  165. <Style x:Key="UserItemContainerStyle" TargetType="ListBoxItem">
  166. <Style.Resources>
  167. <!-- SelectedItem with focus -->
  168. <SolidColorBrush
  169. x:Key="{x:Static SystemColors.HighlightBrushKey}"
  170. Opacity=".4"
  171. Color="White" />
  172. <!-- SelectedItem without focus -->
  173. <SolidColorBrush
  174. x:Key="{x:Static SystemColors.ControlBrushKey}"
  175. Opacity=".4"
  176. Color="White" />
  177. </Style.Resources>
  178. <!-- 设置触发器 -->
  179. <Style.Triggers>
  180. <Trigger Property="IsMouseOver" Value="true">
  181. <Setter Property="Background" Value="White" />
  182. <Setter Property="Foreground" Value="White" />
  183. </Trigger>
  184. <Trigger Property="IsFocused" Value="true">
  185. <Setter Property="Background" Value="White" />
  186. <Setter Property="Foreground" Value="White" />
  187. </Trigger>
  188. </Style.Triggers>
  189. </Style>
  190. </ResourceDictionary>