终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

956 lines
49 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
  4. >
  5. <Style x:Key="bordertopTitle" TargetType="Border">
  6. <Style.Setters>
  7. <Setter Property="Height" Value="100"></Setter>
  8. <Setter Property="Background">
  9. <Setter.Value>
  10. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png"/>
  11. </Setter.Value>
  12. </Setter>
  13. </Style.Setters>
  14. </Style>
  15. <Style x:Key="imagetop" TargetType="Image">
  16. <Style.Setters>
  17. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  18. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png"/>
  19. </Style.Setters>
  20. </Style>
  21. <ImageBrush x:Key="imageBJ" ImageSource="/BPASmartClient.CustomResource;component/Image/图层1.png"/>
  22. <ImageBrush x:Key="image1" ImageSource="/BPASmartClient.CustomResource;component/Image/shape.png"/>
  23. <ImageBrush x:Key="image2" ImageSource="/BPASmartClient.CustomResource;component/Image/shape1.png"/>
  24. <!--#region Color-->
  25. <SolidColorBrush x:Key="foreground" Color="#FFA2C2E8"/>
  26. <!--#endregion-->
  27. <!--#region ToggleButton-->
  28. <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
  29. <Style.Setters>
  30. <Setter Property="Width" Value="36"></Setter>
  31. <Setter Property="Height" Value="32"></Setter>
  32. <Setter Property="Cursor" Value="Hand"></Setter>
  33. <Setter Property="IsChecked" Value="{Binding IsCheck,Mode=TwoWay}"></Setter>
  34. <Setter Property="Template">
  35. <Setter.Value>
  36. <ControlTemplate TargetType="ToggleButton">
  37. <Grid>
  38. <Border x:Name="bd1" Visibility="Collapsed" Width="25" Height="13" HorizontalAlignment="Right" Panel.ZIndex="100" VerticalAlignment="Top" Margin="0,-5,-5,0" CornerRadius="3" Background="#33FF0000" >
  39. <TextBlock Text="{Binding ListNum}" Foreground="#FF2AA7D3" HorizontalAlignment="Center"></TextBlock>
  40. </Border>
  41. <Image x:Name="image1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Source="Image/告警.png" Panel.ZIndex="0" Stretch="UniformToFill" ></Image>
  42. </Grid>
  43. <ControlTemplate.Triggers>
  44. <Trigger Property="IsChecked" Value="true">
  45. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
  46. </Trigger>
  47. <MultiDataTrigger>
  48. <MultiDataTrigger.Conditions>
  49. <Condition Binding="{Binding IsCheck}" Value="true"></Condition>
  50. <Condition Binding="{Binding IsAlarm}" Value="true"></Condition>
  51. </MultiDataTrigger.Conditions>
  52. <MultiDataTrigger.Setters>
  53. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
  54. <Setter TargetName="bd1" Property="Visibility" Value="Visible"></Setter>
  55. </MultiDataTrigger.Setters>
  56. </MultiDataTrigger>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Setter.Value>
  60. </Setter>
  61. </Style.Setters>
  62. </Style>
  63. <!--#endregion-->
  64. <!--#region Image -->
  65. <Style x:Key="image营销额" TargetType="Image">
  66. <Style.Setters>
  67. <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
  68. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png"/>
  69. </Style.Setters>
  70. </Style>
  71. <Style x:Key="imagetitletext" TargetType="Image">
  72. <Style.Setters>
  73. <Setter Property="Height" Value="20"></Setter>
  74. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  75. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png"/>
  76. </Style.Setters>
  77. </Style>
  78. <Style x:Key="image圆角矩形" TargetType="Image">
  79. <Style.Setters>
  80. <Setter Property="Height" Value="33"></Setter>
  81. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  82. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png"/>
  83. </Style.Setters>
  84. </Style>
  85. <Style x:Key="image黑菠萝科技" TargetType="Image">
  86. <Style.Setters>
  87. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  88. <Setter Property="Height" Value="24"></Setter>
  89. <Setter Property="Width" Value="70"></Setter>
  90. <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
  91. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png"/>
  92. </Style.Setters>
  93. </Style>
  94. <Style x:Key="MainBJ" TargetType="Image">
  95. <Style.Setters>
  96. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png"/>
  97. </Style.Setters>
  98. </Style>
  99. <Style x:Key="TitleImage" TargetType="Image">
  100. <Style.Setters>
  101. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico"></Setter>
  102. </Style.Setters>
  103. </Style>
  104. <Style x:Key="timeImage" TargetType="Image">
  105. <Style.Setters>
  106. <Setter Property="Width" Value="20"></Setter>
  107. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png"></Setter>
  108. </Style.Setters>
  109. </Style>
  110. <Style x:Key="image文字" TargetType="Image">
  111. <Style.Setters>
  112. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png"/>
  113. </Style.Setters>
  114. </Style>
  115. <Style x:Key="image底部科技背景" TargetType="Image">
  116. <Style.Setters>
  117. <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
  118. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png"/>
  119. </Style.Setters>
  120. </Style>
  121. <Style x:Key="image个人信息" TargetType="Image">
  122. <Style.Setters>
  123. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png"/>
  124. </Style.Setters>
  125. </Style>
  126. <Style x:Key="image维护" TargetType="Image">
  127. <Style.Setters>
  128. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png"/>
  129. </Style.Setters>
  130. </Style>
  131. <Style x:Key="image标题其他" TargetType="Image">
  132. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png"></Setter>
  133. <Setter Property="Height" Value="12"></Setter>
  134. </Style>
  135. <Style x:Key="image告警" TargetType="Image">
  136. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png"></Setter>
  137. <Setter Property="Height" Value="24"></Setter>
  138. </Style>
  139. <Style x:Key="image有告警" TargetType="Image">
  140. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
  141. <Setter Property="Height" Value="30"></Setter>
  142. </Style>
  143. <!--#endregion-->
  144. <!--#region Border-->
  145. <Style x:Key="border窗体背景1" TargetType="Border">
  146. <Style.Setters>
  147. <Setter Property="Background">
  148. <Setter.Value>
  149. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png"/>
  150. </Setter.Value>
  151. </Setter>
  152. </Style.Setters>
  153. </Style>
  154. <Style x:Key="border窗体背景2" TargetType="Border">
  155. <Style.Setters>
  156. <Setter Property="Background">
  157. <Setter.Value>
  158. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform"/>
  159. </Setter.Value>
  160. </Setter>
  161. </Style.Setters>
  162. </Style>
  163. <Style x:Key="border窗体背景3" TargetType="Border">
  164. <Style.Setters>
  165. <Setter Property="Background">
  166. <Setter.Value>
  167. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png" Stretch="Fill" Opacity="1" Viewbox="0,0,1,1" TileMode="FlipX" ViewboxUnits="RelativeToBoundingBox"/>
  168. </Setter.Value>
  169. </Setter>
  170. </Style.Setters>
  171. </Style>
  172. <Style x:Key="border窗体背景4" TargetType="Border">
  173. <Style.Setters>
  174. <Setter Property="Background">
  175. <Setter.Value>
  176. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png"/>
  177. </Setter.Value>
  178. </Setter>
  179. </Style.Setters>
  180. </Style>
  181. <Style x:Key="border窗体背景5" TargetType="Border">
  182. <Style.Setters>
  183. <Setter Property="Background">
  184. <Setter.Value>
  185. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png"/>
  186. </Setter.Value>
  187. </Setter>
  188. </Style.Setters>
  189. </Style>
  190. <Style x:Key="border窗体背景6" TargetType="Border">
  191. <Style.Setters>
  192. <Setter Property="Background">
  193. <Setter.Value>
  194. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png"/>
  195. </Setter.Value>
  196. </Setter>
  197. </Style.Setters>
  198. </Style>
  199. <Style x:Key="border窗体背景7" TargetType="Border">
  200. <Style.Setters>
  201. <Setter Property="Background">
  202. <Setter.Value>
  203. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None"/>
  204. </Setter.Value>
  205. </Setter>
  206. </Style.Setters>
  207. </Style>
  208. <Style x:Key="border圆角矩形" TargetType="Border">
  209. <Style.Setters>
  210. <Setter Property="BorderThickness" Value="3"></Setter>
  211. <Setter Property="Background">
  212. <Setter.Value>
  213. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png"/>
  214. </Setter.Value>
  215. </Setter>
  216. </Style.Setters>
  217. </Style>
  218. <Style x:Key="border不规则矩形" TargetType="Border">
  219. <Style.Setters>
  220. <Setter Property="BorderThickness" Value="0.5"></Setter>
  221. <Setter Property="Background">
  222. <Setter.Value>
  223. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png"/>
  224. </Setter.Value>
  225. </Setter>
  226. </Style.Setters>
  227. </Style>
  228. <Style x:Key="border矩形" TargetType="Border">
  229. <Style.Setters>
  230. <Setter Property="BorderThickness" Value="0.5"></Setter>
  231. <Setter Property="Background">
  232. <Setter.Value>
  233. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png"/>
  234. </Setter.Value>
  235. </Setter>
  236. </Style.Setters>
  237. </Style>
  238. <Style x:Key="border顶部背景" TargetType="Border">
  239. <Style.Setters>
  240. <Setter Property="Background">
  241. <Setter.Value>
  242. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png"/>
  243. </Setter.Value>
  244. </Setter>
  245. <Setter Property="BorderBrush">
  246. <Setter.Value>
  247. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png"></ImageBrush>
  248. </Setter.Value>
  249. </Setter>
  250. <Setter Property="BorderThickness" Value="0,0,0,1"></Setter>
  251. </Style.Setters>
  252. </Style>
  253. <Style x:Key="border标题背景" TargetType="Border">
  254. <Style.Setters>
  255. <Setter Property="Background">
  256. <Setter.Value>
  257. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png"/>
  258. </Setter.Value>
  259. </Setter>
  260. </Style.Setters>
  261. </Style>
  262. <Style x:Key="border主窗体背景" TargetType="Border">
  263. <Style.Setters>
  264. <Setter Property="Background">
  265. <Setter.Value>
  266. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png"/>
  267. </Setter.Value>
  268. </Setter>
  269. </Style.Setters>
  270. </Style>
  271. <Style x:Key="border竖线" TargetType="Border">
  272. <Style.Setters>
  273. <Setter Property="Width" Value="1"></Setter>
  274. <Setter Property="Height" Value="40"></Setter>
  275. <Setter Property="BorderThickness" Value="0"></Setter>
  276. <Setter Property="Margin" Value="5"></Setter>
  277. <Setter Property="Background">
  278. <Setter.Value>
  279. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png"/>
  280. </Setter.Value>
  281. </Setter>
  282. </Style.Setters>
  283. </Style>
  284. <Style x:Key="border内部" TargetType="Border">
  285. <Style.Setters>
  286. <Setter Property="Width" Value="320"></Setter>
  287. <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
  288. <Setter Property="VerticalAlignment" Value="Stretch"></Setter>
  289. <Setter Property="BorderThickness" Value="0"></Setter>
  290. <Setter Property="Margin" Value="5"></Setter>
  291. <Setter Property="Background">
  292. <Setter.Value>
  293. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png"/>
  294. </Setter.Value>
  295. </Setter>
  296. </Style.Setters>
  297. </Style>
  298. <Style x:Key="border矩形2" TargetType="Border">
  299. <Style.Setters>
  300. <Setter Property="Margin" Value="0,0,10,0"></Setter>
  301. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  302. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  303. <Setter Property="Width" Value="92"></Setter>
  304. <Setter Property="Height" Value="46"></Setter>
  305. <Setter Property="BorderThickness" Value="0"></Setter>
  306. <Setter Property="Background">
  307. <Setter.Value>
  308. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png"/>
  309. </Setter.Value>
  310. </Setter>
  311. </Style.Setters>
  312. </Style>
  313. <Style x:Key="border矢量智能对象" TargetType="Border">
  314. <Style.Setters>
  315. <Setter Property="Width" Value="1"></Setter>
  316. <Setter Property="Height" Value="40"></Setter>
  317. <Setter Property="BorderThickness" Value="0"></Setter>
  318. <Setter Property="Margin" Value="5"></Setter>
  319. <Setter Property="Background">
  320. <Setter.Value>
  321. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png"/>
  322. </Setter.Value>
  323. </Setter>
  324. </Style.Setters>
  325. </Style>
  326. <Style x:Key="border边框" TargetType="Border">
  327. <Style.Setters>
  328. <Setter Property="Background">
  329. <Setter.Value>
  330. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
  331. </Setter.Value>
  332. </Setter>
  333. </Style.Setters>
  334. </Style>
  335. <Style x:Key="border边框2" TargetType="Border">
  336. <Style.Setters>
  337. <Setter Property="Background">
  338. <Setter.Value>
  339. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill"/>
  340. </Setter.Value>
  341. </Setter>
  342. </Style.Setters>
  343. </Style>
  344. <Style x:Key="border右下" TargetType="Border">
  345. <Style.Setters>
  346. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  347. <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
  348. <Setter Property="Height" Value="20"></Setter>
  349. <Setter Property="Width" Value="20"></Setter>
  350. <Setter Property="Background">
  351. <Setter.Value>
  352. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格底右.png" Stretch="None"/>
  353. </Setter.Value>
  354. </Setter>
  355. </Style.Setters>
  356. </Style>
  357. <Style x:Key="border左下" TargetType="Border">
  358. <Style.Setters>
  359. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  360. <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
  361. <Setter Property="Height" Value="20"></Setter>
  362. <Setter Property="Width" Value="20"></Setter>
  363. <Setter Property="Background">
  364. <Setter.Value>
  365. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格底左.png" Stretch="None"/>
  366. </Setter.Value>
  367. </Setter>
  368. </Style.Setters>
  369. </Style>
  370. <Style x:Key="border左上" TargetType="Border">
  371. <Style.Setters>
  372. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  373. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  374. <Setter Property="Height" Value="90"></Setter>
  375. <Setter Property="Width" Value="20"></Setter>
  376. <Setter Property="Background">
  377. <Setter.Value>
  378. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格顶左.png" Stretch="None"/>
  379. </Setter.Value>
  380. </Setter>
  381. </Style.Setters>
  382. </Style>
  383. <Style x:Key="border右上" TargetType="Border">
  384. <Style.Setters>
  385. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  386. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  387. <Setter Property="Height" Value="20"></Setter>
  388. <Setter Property="Width" Value="20"></Setter>
  389. <Setter Property="Background">
  390. <Setter.Value>
  391. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格顶右.png" Stretch="None"/>
  392. </Setter.Value>
  393. </Setter>
  394. </Style.Setters>
  395. </Style>
  396. <!--#endregion-->
  397. <!--#region Button-->
  398. <Style x:Key="TitleBarStyle" TargetType="Button">
  399. <Setter Property="Foreground" Value="White" />
  400. <Setter Property="FontSize" Value="20" />
  401. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
  402. <Setter Property="Template">
  403. <Setter.Value>
  404. <ControlTemplate TargetType="Button">
  405. <Border Name="TitleBarBr" Background="Transparent">
  406. <ContentPresenter
  407. Margin="{TemplateBinding Margin}"
  408. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  409. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  410. </Border>
  411. <ControlTemplate.Triggers>
  412. <Trigger Property="IsMouseOver" Value="true">
  413. <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
  414. </Trigger>
  415. </ControlTemplate.Triggers>
  416. </ControlTemplate>
  417. </Setter.Value>
  418. </Setter>
  419. </Style>
  420. <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
  421. <Style.Setters>
  422. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  423. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  424. <Setter Property="Cursor" Value="Hand"></Setter>
  425. <Setter Property="Width" Value="65"></Setter>
  426. <Setter Property="Height" Value="24"></Setter>
  427. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  428. <Setter Property="Template">
  429. <Setter.Value>
  430. <ControlTemplate TargetType="Button">
  431. <!--<ControlTemplate.Resources>
  432. <Storyboard x:Key="OnMouseEnter1">
  433. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  434. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  435. </ColorAnimationUsingKeyFrames>
  436. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  437. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  438. </ColorAnimationUsingKeyFrames>
  439. </Storyboard>
  440. </ControlTemplate.Resources>-->
  441. <Border x:Name="BD" CornerRadius="2">
  442. <Border.Background>
  443. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png"/>
  444. </Border.Background>
  445. <VisualStateManager.VisualStateGroups>
  446. <VisualStateGroup x:Name="CommonStates">
  447. <VisualState x:Name="Normal"/>
  448. <VisualState x:Name="MouseOver">
  449. <Storyboard>
  450. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock">
  451. <EasingColorKeyFrame KeyTime="0" Value="White"/>
  452. </ColorAnimationUsingKeyFrames>
  453. <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  454. <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
  455. </ColorAnimationUsingKeyFrames>
  456. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
  457. <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
  458. </DoubleAnimationUsingKeyFrames>
  459. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  460. <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
  461. </ColorAnimationUsingKeyFrames>-->
  462. </Storyboard>
  463. </VisualState>
  464. <VisualState x:Name="Pressed"/>
  465. <VisualState x:Name="Disabled"/>
  466. </VisualStateGroup>
  467. </VisualStateManager.VisualStateGroups>
  468. <StackPanel HorizontalAlignment="Center" Margin="5" Orientation="Horizontal">
  469. <Image Source="/BPASmartClient.CustomResource;component/Image/退出.png" Width="16" ></Image>
  470. <TextBlock Margin="5,0,0,0" x:Name="textBlock" Text="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="#A5FFFFFF" />
  471. </StackPanel>
  472. </Border>
  473. </ControlTemplate>
  474. </Setter.Value>
  475. </Setter>
  476. </Style.Setters>
  477. </Style>
  478. <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
  479. <Style.Setters>
  480. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  481. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  482. <Setter Property="Cursor" Value="Hand"></Setter>
  483. <Setter Property="Width" Value="65"></Setter>
  484. <Setter Property="Height" Value="24"></Setter>
  485. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  486. <Setter Property="Template">
  487. <Setter.Value>
  488. <ControlTemplate TargetType="Button">
  489. <Border x:Name="BD" CornerRadius="2">
  490. <Border.Background>
  491. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png"/>
  492. </Border.Background>
  493. <VisualStateManager.VisualStateGroups>
  494. <VisualStateGroup x:Name="CommonStates">
  495. <VisualState x:Name="Normal"/>
  496. <VisualState x:Name="MouseOver">
  497. <Storyboard>
  498. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock">
  499. <EasingColorKeyFrame KeyTime="0" Value="White"/>
  500. </ColorAnimationUsingKeyFrames>
  501. </Storyboard>
  502. </VisualState>
  503. <VisualState x:Name="Pressed"/>
  504. <VisualState x:Name="Disabled"/>
  505. </VisualStateGroup>
  506. </VisualStateManager.VisualStateGroups>
  507. <StackPanel HorizontalAlignment="Center" Margin="5" Orientation="Horizontal">
  508. <Image Source="/BPASmartClient.CustomResource;component/Image/退出.png" Width="16" ></Image>
  509. <TextBlock Margin="5,0,0,0" x:Name="textBlock" Text="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="#A5FFFFFF" />
  510. </StackPanel>
  511. </Border>
  512. </ControlTemplate>
  513. </Setter.Value>
  514. </Setter>
  515. </Style.Setters>
  516. </Style>
  517. <Style TargetType="Button">
  518. <Style.Setters>
  519. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  520. <Setter Property="Cursor" Value="Hand"></Setter>
  521. <Setter Property="Foreground" Value="{DynamicResource foreground}"></Setter>
  522. <Setter Property="Width" Value="65"></Setter>
  523. <Setter Property="Height" Value="24"></Setter>
  524. <Setter Property="Template">
  525. <Setter.Value>
  526. <ControlTemplate TargetType="Button">
  527. <ControlTemplate.Resources>
  528. <Storyboard x:Key="OnMouseEnter1">
  529. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  530. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  531. </ColorAnimationUsingKeyFrames>
  532. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  533. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  534. </ColorAnimationUsingKeyFrames>
  535. </Storyboard>
  536. </ControlTemplate.Resources>
  537. <Border x:Name="BD" CornerRadius="12" BorderThickness="1" BorderBrush="#05408a" Background="Transparent">
  538. <TextBlock x:Name="textBlock" FontSize="12" Text="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{DynamicResource foreground}" />
  539. </Border>
  540. <ControlTemplate.Triggers>
  541. <Trigger Property="IsMouseOver" Value="true">
  542. <Setter TargetName="BD" Property="Background" Value="#009dff" />
  543. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
  544. </Trigger>
  545. <Trigger Property="IsEnabled" Value="False">
  546. <Setter TargetName="BD" Property="Background" Value="#ff55" />
  547. </Trigger>
  548. </ControlTemplate.Triggers>
  549. </ControlTemplate>
  550. </Setter.Value>
  551. </Setter>
  552. </Style.Setters>
  553. </Style>
  554. <!--#endregion-->
  555. <!--#region TextBox-->
  556. <Style x:Key="TextBoxStyle人员" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
  557. <Setter Property="Foreground" Value="#A4EBF7"/>
  558. <Setter Property="Background">
  559. <Setter.Value>
  560. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png"/>
  561. </Setter.Value>
  562. </Setter>
  563. <Setter Property="FontSize" Value="14"></Setter>
  564. <Setter Property="TextWrapping" Value="NoWrap"></Setter>
  565. <Setter Property="BorderBrush" Value="Transparent"></Setter>
  566. <Setter Property="BorderThickness" Value="1"/>
  567. <Setter Property="Padding" Value="1"/>
  568. <Setter Property="AllowDrop" Value="true"/>
  569. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  570. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  571. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  572. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  573. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  574. <Setter Property="Height" Value="35"></Setter>
  575. <Setter Property="Width" Value="auto"></Setter>
  576. <Setter Property="MinWidth" Value="200"></Setter>
  577. <Setter Property="Template">
  578. <Setter.Value>
  579. <ControlTemplate TargetType="{x:Type TextBox}">
  580. <Themes:ListBoxChrome x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" SnapsToDevicePixels="true">
  581. <Grid>
  582. <Grid.ColumnDefinitions>
  583. <ColumnDefinition Width="auto"/>
  584. <ColumnDefinition/>
  585. </Grid.ColumnDefinitions>
  586. <Image Margin="20,0,0,0" Tag="Search" Source="Image/搜索按钮.png" Cursor="Hand" Width="20" Height="Auto" HorizontalAlignment="Right" ></Image>
  587. <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
  588. <!--<local:ButtonEx Grid.Column="1" ButtonType="Icon" Icon="Images/search.png" Cursor="Hand" Margin="3" Width="{Binding ElementName=PART_ContentHost, Path=Height}" Height="{Binding ElementName=PART_ContentHost, Path=Height}" Click="Button_SearchMBK_Click"/>-->
  589. </Grid>
  590. </Themes:ListBoxChrome>
  591. <ControlTemplate.Triggers>
  592. <Trigger Property="IsEnabled" Value="false">
  593. <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
  594. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  595. </Trigger>
  596. </ControlTemplate.Triggers>
  597. </ControlTemplate>
  598. </Setter.Value>
  599. </Setter>
  600. <Style.Triggers>
  601. <MultiTrigger>
  602. <MultiTrigger.Conditions>
  603. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
  604. <Condition Property="IsSelectionActive" Value="false"/>
  605. </MultiTrigger.Conditions>
  606. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  607. </MultiTrigger>
  608. </Style.Triggers>
  609. </Style>
  610. <Style x:Key="TextBoxStyle搜索框" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
  611. <Setter Property="Foreground" Value="#A4EBF7"/>
  612. <Setter Property="FontSize" Value="14"></Setter>
  613. <Setter Property="TextWrapping" Value="NoWrap"></Setter>
  614. <Setter Property="BorderBrush" Value="Transparent"></Setter>
  615. <Setter Property="BorderThickness" Value="1"/>
  616. <Setter Property="Margin" Value="10,0,0,0"/>
  617. <Setter Property="AllowDrop" Value="true"/>
  618. <Setter Property="CaretBrush" Value="Aqua" />
  619. <Setter Property="Padding" Value="1" />
  620. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  621. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  622. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  623. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  624. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  625. <Setter Property="Height" Value="40"></Setter>
  626. <Setter Property="Width" Value="135"></Setter>
  627. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  628. <Setter Property="Template">
  629. <Setter.Value>
  630. <ControlTemplate TargetType="{x:Type TextBox}">
  631. <Border x:Name="Bd" VerticalAlignment="Center">
  632. <Border.Background>
  633. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png"/>
  634. </Border.Background>
  635. <Grid >
  636. <ScrollViewer
  637. x:Name="PART_ContentHost"
  638. VerticalAlignment="Center"
  639. HorizontalScrollBarVisibility="Hidden"
  640. VerticalScrollBarVisibility="Hidden" />
  641. <Image Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png" HorizontalAlignment="Left" Margin="10,3,3,3" Stretch="Uniform" Width="20"></Image>
  642. </Grid>
  643. </Border>
  644. <ControlTemplate.Triggers>
  645. <Trigger Property="IsEnabled" Value="false">
  646. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  647. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  648. </Trigger>
  649. <Trigger Property="IsMouseOver" Value="true">
  650. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  651. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  652. </Trigger>
  653. <Trigger Property="IsKeyboardFocused" Value="true">
  654. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  655. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  656. </Trigger>
  657. </ControlTemplate.Triggers>
  658. </ControlTemplate>
  659. </Setter.Value>
  660. </Setter>
  661. <Style.Triggers>
  662. <MultiTrigger>
  663. <MultiTrigger.Conditions>
  664. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
  665. <Condition Property="IsSelectionActive" Value="false"/>
  666. </MultiTrigger.Conditions>
  667. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  668. </MultiTrigger>
  669. </Style.Triggers>
  670. </Style>
  671. <!--#endregion-->
  672. <!--#region UserNameTextBoxStyle-->
  673. <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
  674. <GradientStop Offset="0.05" Color="#ABADB3" />
  675. <GradientStop Offset="0.07" Color="#E2E3EA" />
  676. <GradientStop Offset="1" Color="#E3E9EF" />
  677. </LinearGradientBrush>
  678. <Style
  679. x:Key="UserNameTextBoxStyle"
  680. BasedOn="{x:Null}"
  681. TargetType="{x:Type TextBox}">
  682. <Setter Property="Foreground" Value="White" />
  683. <Setter Property="Background" Value="Transparent" />
  684. <Setter Property="Padding" Value="1" />
  685. <Setter Property="CaretBrush" Value="Aqua" />
  686. <Setter Property="Height" Value="40" />
  687. <Setter Property="Width" Value="135" />
  688. <Setter Property="HorizontalContentAlignment" Value="Center" />
  689. <Setter Property="FontSize" Value="16" />
  690. <Setter Property="HorizontalAlignment" Value="Left" />
  691. <Setter Property="AllowDrop" Value="true" />
  692. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  693. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  694. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  695. <Setter Property="Template">
  696. <Setter.Value>
  697. <ControlTemplate TargetType="{x:Type TextBox}">
  698. <Border x:Name="Bd" VerticalAlignment="Center">
  699. <Grid>
  700. <ScrollViewer
  701. x:Name="PART_ContentHost"
  702. VerticalAlignment="Center"
  703. HorizontalScrollBarVisibility="Hidden"
  704. VerticalScrollBarVisibility="Hidden" />
  705. <Path
  706. x:Name="p1"
  707. Stroke="#7720FDFA"
  708. StrokeThickness="1">
  709. <Path.Data>
  710. <PathGeometry>
  711. <PathFigure IsClosed="False" StartPoint="1, 1">
  712. <LineSegment Point="133,1" />
  713. <LineSegment Point="133,38" />
  714. <LineSegment Point="1,38" />
  715. <LineSegment Point="1,1" />
  716. </PathFigure>
  717. </PathGeometry>
  718. </Path.Data>
  719. </Path>
  720. <Path
  721. Name="p2"
  722. Stroke="#aa20FDFA"
  723. StrokeThickness="3">
  724. <Path.Data>
  725. <PathGeometry>
  726. <PathFigure IsClosed="False" StartPoint="10, 1">
  727. <LineSegment Point="1,1" />
  728. <LineSegment Point="1,10" />
  729. </PathFigure>
  730. </PathGeometry>
  731. </Path.Data>
  732. </Path>
  733. <Path
  734. Name="p3"
  735. Stroke="#aa20FDFA"
  736. StrokeThickness="3">
  737. <Path.Data>
  738. <PathGeometry>
  739. <PathFigure IsClosed="False" StartPoint="125, 1">
  740. <LineSegment Point="133,1" />
  741. <LineSegment Point="133,10" />
  742. </PathFigure>
  743. </PathGeometry>
  744. </Path.Data>
  745. </Path>
  746. <Path
  747. x:Name="p4"
  748. Stroke="#aa20FDFA"
  749. StrokeThickness="3">
  750. <Path.Data>
  751. <PathGeometry>
  752. <PathFigure IsClosed="False" StartPoint="125, 38">
  753. <LineSegment Point="133,38" />
  754. <LineSegment Point="133,30" />
  755. </PathFigure>
  756. </PathGeometry>
  757. </Path.Data>
  758. </Path>
  759. <Path
  760. x:Name="p5"
  761. Stroke="#aa20FDFA"
  762. StrokeThickness="3">
  763. <Path.Data>
  764. <PathGeometry>
  765. <PathFigure IsClosed="False" StartPoint="1, 30">
  766. <LineSegment Point="1,38" />
  767. <LineSegment Point="10,38" />
  768. </PathFigure>
  769. </PathGeometry>
  770. </Path.Data>
  771. </Path>
  772. </Grid>
  773. </Border>
  774. <ControlTemplate.Triggers>
  775. <Trigger Property="IsEnabled" Value="false">
  776. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  777. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  778. </Trigger>
  779. <Trigger Property="IsMouseOver" Value="true">
  780. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  781. <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
  782. <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
  783. <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
  784. <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
  785. <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
  786. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  787. </Trigger>
  788. <Trigger Property="IsKeyboardFocused" Value="true">
  789. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  790. <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
  791. <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
  792. <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
  793. <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
  794. <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
  795. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  796. </Trigger>
  797. </ControlTemplate.Triggers>
  798. </ControlTemplate>
  799. </Setter.Value>
  800. </Setter>
  801. <Style.Triggers>
  802. <MultiTrigger>
  803. <MultiTrigger.Conditions>
  804. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  805. <Condition Property="IsSelectionActive" Value="false" />
  806. </MultiTrigger.Conditions>
  807. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  808. </MultiTrigger>
  809. </Style.Triggers>
  810. </Style>
  811. <!--#endregion-->
  812. <!--#region TextBlock-->
  813. <Style TargetType="TextBlock">
  814. <Style.Setters>
  815. <Setter Property="Foreground" Value="#a2c2e8"/>
  816. <Setter Property="HorizontalAlignment" Value="Left"/>
  817. <Setter Property="VerticalAlignment" Value="Center"/>
  818. <Setter Property="FontSize" Value="20"/>
  819. </Style.Setters>
  820. </Style>
  821. <Style x:Key="Title" TargetType="TextBlock">
  822. <Setter Property="FontSize" Value="18"></Setter>
  823. <Setter Property="Foreground" Value="#FF58C7EE"></Setter>
  824. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  825. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  826. </Style>
  827. <!--#endregion-->
  828. <!--#region GroupBox-->
  829. <BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
  830. <Style TargetType="{x:Type GroupBox}">
  831. <Setter Property="BorderThickness" Value="0"/>
  832. <Setter Property="Background" Value="Transparent"/>
  833. <Setter Property="Foreground" Value="#FF68D8FE"/>
  834. <Setter Property="Template">
  835. <Setter.Value>
  836. <ControlTemplate TargetType="{x:Type GroupBox}">
  837. <Grid SnapsToDevicePixels="true">
  838. <Grid.ColumnDefinitions>
  839. <ColumnDefinition Width="6"/>
  840. <ColumnDefinition Width="Auto"/>
  841. <ColumnDefinition Width="*"/>
  842. <ColumnDefinition Width="6"/>
  843. </Grid.ColumnDefinitions>
  844. <Grid.RowDefinitions>
  845. <RowDefinition Height="Auto"/>
  846. <RowDefinition Height="Auto"/>
  847. <RowDefinition Height="*"/>
  848. <RowDefinition Height="6"/>
  849. </Grid.RowDefinitions>
  850. <Rectangle Grid.ColumnSpan="4" Grid.RowSpan="2" />
  851. <Border BorderThickness="0" Grid.ColumnSpan="4" CornerRadius="0" Grid.Row="2" Grid.RowSpan="2" Margin="0,0,0,0">
  852. </Border>
  853. <Image Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" Margin="0,5,0,0" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Height="4" HorizontalAlignment="Left"></Image>
  854. <Border x:Name="Header" Margin="30,0,0,0" Grid.Column="1" Height="30" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
  855. <ContentPresenter ContentSource="Header" VerticalAlignment="Center" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  856. </Border>
  857. <ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  858. </Grid>
  859. </ControlTemplate>
  860. </Setter.Value>
  861. </Setter>
  862. </Style>
  863. <!--#endregion-->
  864. <!--空MenuHeader-->
  865. <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
  866. <Setter Property="Height" Value="Auto" />
  867. <Setter Property="Template">
  868. <Setter.Value>
  869. <ControlTemplate TargetType="{x:Type MenuItem}">
  870. <Grid Margin="1">
  871. <ContentPresenter x:Name="Presenter" ContentSource="Header" Margin="{TemplateBinding Padding}" />
  872. </Grid>
  873. </ControlTemplate>
  874. </Setter.Value>
  875. </Setter>
  876. </Style>
  877. </ResourceDictionary>