终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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