终端一体化运控平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
2 роки тому
2 роки тому
2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <!--#region 按钮样式-->
  3. <Style x:Key="ButtonStyle" TargetType="Button">
  4. <Setter Property="Foreground" Value="#00c2f4" />
  5. <Setter Property="FontSize" Value="18" />
  6. <Setter Property="Margin" Value="10,0" />
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="Button">
  10. <Border
  11. Name="TitleBarBr"
  12. Background="Transparent"
  13. BorderBrush="#00c2f4"
  14. BorderThickness="2"
  15. CornerRadius="10">
  16. <ContentPresenter
  17. Margin="{TemplateBinding Margin}"
  18. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  19. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  20. </Border>
  21. <ControlTemplate.Triggers>
  22. <Trigger Property="IsMouseOver" Value="true">
  23. <Setter TargetName="TitleBarBr" Property="Background" Value="#3300c2f4" />
  24. </Trigger>
  25. </ControlTemplate.Triggers>
  26. </ControlTemplate>
  27. </Setter.Value>
  28. </Setter>
  29. </Style>
  30. <!--#endregion-->
  31. <Style x:Key="ImageButtonStyle" TargetType="Button">
  32. <Setter Property="Margin" Value="10" />
  33. <Setter Property="FontSize" Value="18" />
  34. <Setter Property="Height" Value="80" />
  35. <Setter Property="Foreground" Value="#00c2f4" />
  36. <Setter Property="FontFamily" Value="楷体" />
  37. <Setter Property="Template">
  38. <Setter.Value>
  39. <ControlTemplate TargetType="Button">
  40. <Border
  41. Name="TitleBarBr"
  42. BorderBrush="#00c2f4"
  43. BorderThickness="0"
  44. CornerRadius="0"
  45. Opacity="0.8">
  46. <ContentPresenter
  47. Margin="{TemplateBinding Margin}"
  48. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  49. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  50. <Border.Background>
  51. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/系统名称.png" />
  52. </Border.Background>
  53. </Border>
  54. <ControlTemplate.Triggers>
  55. <Trigger Property="IsMouseOver" Value="true">
  56. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  57. </Trigger>
  58. </ControlTemplate.Triggers>
  59. </ControlTemplate>
  60. </Setter.Value>
  61. </Setter>
  62. </Style>
  63. <Style x:Key="OKImageButtonStyle" TargetType="Button">
  64. <Setter Property="Margin" Value="10" />
  65. <Setter Property="FontSize" Value="18" />
  66. <Setter Property="Height" Value="80" />
  67. <Setter Property="Foreground" Value="#00c2f4" />
  68. <Setter Property="FontFamily" Value="楷体" />
  69. <Setter Property="Template">
  70. <Setter.Value>
  71. <ControlTemplate TargetType="Button">
  72. <Border
  73. Name="TitleBarBr"
  74. BorderBrush="#00c2f4"
  75. BorderThickness="0"
  76. CornerRadius="0"
  77. Opacity="0.8">
  78. <ContentPresenter
  79. Margin="{TemplateBinding Margin}"
  80. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  81. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  82. <Border.Background>
  83. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/按钮背景蓝色.png" />
  84. </Border.Background>
  85. </Border>
  86. <ControlTemplate.Triggers>
  87. <Trigger Property="IsMouseOver" Value="true">
  88. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  89. </Trigger>
  90. </ControlTemplate.Triggers>
  91. </ControlTemplate>
  92. </Setter.Value>
  93. </Setter>
  94. </Style>
  95. <Style x:Key="CancelImageButtonStyle" TargetType="Button">
  96. <Setter Property="Margin" Value="10" />
  97. <Setter Property="FontSize" Value="18" />
  98. <Setter Property="Height" Value="80" />
  99. <Setter Property="Foreground" Value="#00c2f4" />
  100. <Setter Property="FontFamily" Value="楷体" />
  101. <Setter Property="Template">
  102. <Setter.Value>
  103. <ControlTemplate TargetType="Button">
  104. <Border
  105. Name="TitleBarBr"
  106. BorderBrush="#00c2f4"
  107. BorderThickness="0"
  108. CornerRadius="0"
  109. Opacity="0.8">
  110. <ContentPresenter
  111. Margin="{TemplateBinding Margin}"
  112. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  113. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  114. <Border.Background>
  115. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/按钮背景黄.png" />
  116. </Border.Background>
  117. </Border>
  118. <ControlTemplate.Triggers>
  119. <Trigger Property="IsMouseOver" Value="true">
  120. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  121. </Trigger>
  122. </ControlTemplate.Triggers>
  123. </ControlTemplate>
  124. </Setter.Value>
  125. </Setter>
  126. </Style>
  127. <Style x:Key="FGImageButtonStyle" TargetType="Button">
  128. <Setter Property="Margin" Value="10" />
  129. <Setter Property="FontSize" Value="18" />
  130. <Setter Property="Height" Value="80" />
  131. <Setter Property="Foreground" Value="#00c2f4" />
  132. <Setter Property="FontFamily" Value="楷体" />
  133. <Setter Property="Template">
  134. <Setter.Value>
  135. <ControlTemplate TargetType="Button">
  136. <Border
  137. Name="TitleBarBr"
  138. BorderBrush="#00c2f4"
  139. BorderThickness="0"
  140. CornerRadius="0"
  141. Opacity="0.8">
  142. <ContentPresenter
  143. Margin="{TemplateBinding Margin}"
  144. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  145. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  146. <Border.Background>
  147. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/发光按钮.png" />
  148. </Border.Background>
  149. </Border>
  150. <ControlTemplate.Triggers>
  151. <Trigger Property="IsMouseOver" Value="true">
  152. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  153. </Trigger>
  154. </ControlTemplate.Triggers>
  155. </ControlTemplate>
  156. </Setter.Value>
  157. </Setter>
  158. </Style>
  159. <Style x:Key="RemoveImageButtonStyle" TargetType="Button">
  160. <Setter Property="Margin" Value="10" />
  161. <Setter Property="FontSize" Value="18" />
  162. <Setter Property="Height" Value="80" />
  163. <Setter Property="Foreground" Value="#00c2f4" />
  164. <Setter Property="FontFamily" Value="楷体" />
  165. <Setter Property="Template">
  166. <Setter.Value>
  167. <ControlTemplate TargetType="Button">
  168. <Border
  169. Name="TitleBarBr"
  170. BorderBrush="#00c2f4"
  171. BorderThickness="0"
  172. CornerRadius="0"
  173. Opacity="0.8">
  174. <ContentPresenter
  175. Margin="{TemplateBinding Margin}"
  176. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  177. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  178. <Border.Background>
  179. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png" />
  180. </Border.Background>
  181. </Border>
  182. <ControlTemplate.Triggers>
  183. <Trigger Property="IsMouseOver" Value="true">
  184. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  185. </Trigger>
  186. </ControlTemplate.Triggers>
  187. </ControlTemplate>
  188. </Setter.Value>
  189. </Setter>
  190. </Style>
  191. <!--#region 移除按钮样式-->
  192. <ControlTemplate x:Key="RemoveButtonTemplate" TargetType="Button">
  193. <Border
  194. x:Name="br"
  195. Background="Transparent"
  196. BorderBrush="#FFDE7889"
  197. BorderThickness="2"
  198. CornerRadius="0">
  199. <StackPanel
  200. HorizontalAlignment="Center"
  201. VerticalAlignment="Center"
  202. Orientation="Horizontal">
  203. <TextBlock
  204. HorizontalAlignment="Center"
  205. VerticalAlignment="Center"
  206. FontFamily="/BPASmartClient.CustomResource;component/Fonts/#iconfont"
  207. FontSize="20"
  208. Text="&#xe68e;" />
  209. <ContentControl
  210. Margin="10,0,5,0"
  211. HorizontalAlignment="Center"
  212. VerticalAlignment="Center"
  213. Content="{TemplateBinding Content}"
  214. Foreground="{TemplateBinding Foreground}" />
  215. </StackPanel>
  216. </Border>
  217. <ControlTemplate.Triggers>
  218. <Trigger Property="IsMouseOver" Value="True">
  219. <Setter TargetName="br" Property="Background" Value="#22DE7889" />
  220. </Trigger>
  221. <Trigger Property="IsPressed" Value="true">
  222. <Setter TargetName="br" Property="Background" Value="#22DE7889" />
  223. </Trigger>
  224. </ControlTemplate.Triggers>
  225. </ControlTemplate>
  226. <!--#endregion-->
  227. </ResourceDictionary>