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

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