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

1740 lines
85 KiB

  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
  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 Label-->
  9. <Style TargetType="{x:Type Label}">
  10. <Setter Property="Foreground" Value="#FF00EEF3" />
  11. <Setter Property="Background" Value="Transparent" />
  12. <Setter Property="Padding" Value="5" />
  13. <Setter Property="HorizontalContentAlignment" Value="Left" />
  14. <Setter Property="VerticalContentAlignment" Value="Top" />
  15. <Setter Property="FontSize" Value="18" />
  16. <Setter Property="Template">
  17. <Setter.Value>
  18. <ControlTemplate TargetType="{x:Type Label}">
  19. <Border
  20. Padding="{TemplateBinding Padding}"
  21. Background="{TemplateBinding Background}"
  22. BorderBrush="{TemplateBinding BorderBrush}"
  23. BorderThickness="{TemplateBinding BorderThickness}"
  24. SnapsToDevicePixels="true">
  25. <ContentPresenter
  26. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  27. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  28. RecognizesAccessKey="True"
  29. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  30. </Border>
  31. <ControlTemplate.Triggers>
  32. <Trigger Property="IsEnabled" Value="false">
  33. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  34. </Trigger>
  35. </ControlTemplate.Triggers>
  36. </ControlTemplate>
  37. </Setter.Value>
  38. </Setter>
  39. </Style>
  40. <!--#endregion-->
  41. <!--#region Color-->
  42. <SolidColorBrush x:Key="foreground" Color="#FFA2C2E8" />
  43. <!--#endregion-->
  44. <!--#region ToggleButton-->
  45. <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
  46. <Style.Setters>
  47. <Setter Property="Width" Value="30" />
  48. <Setter Property="Height" Value="19" />
  49. <Setter Property="Cursor" Value="Hand" />
  50. <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
  51. <Setter Property="Template">
  52. <Setter.Value>
  53. <ControlTemplate TargetType="ToggleButton">
  54. <Grid Cursor="Hand">
  55. <Border
  56. x:Name="bd1"
  57. Width="25"
  58. Height="13"
  59. Margin="0,-10,-5,0"
  60. HorizontalAlignment="Right"
  61. VerticalAlignment="Top"
  62. Panel.ZIndex="100"
  63. Background="#2600CAFF"
  64. CornerRadius="3"
  65. Cursor="Hand"
  66. Visibility="Collapsed">
  67. <TextBlock
  68. HorizontalAlignment="Center"
  69. FontSize="8"
  70. Foreground="#FF00E6F7"
  71. Text="{Binding ListNum, Mode=TwoWay}" />
  72. <!-- -->
  73. </Border>
  74. <Image
  75. x:Name="image1"
  76. Width="{TemplateBinding Width}"
  77. Height="{TemplateBinding Height}"
  78. Panel.ZIndex="0"
  79. RenderOptions.BitmapScalingMode="HighQuality"
  80. SnapsToDevicePixels="True"
  81. Source="/BPASmartClient.CustomResource;component/Image/告警/无告警.png"
  82. UseLayoutRounding="True" />
  83. </Grid>
  84. <ControlTemplate.Triggers>
  85. <Trigger Property="IsChecked" Value="true">
  86. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
  87. <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
  88. </Trigger>
  89. <Trigger Property="IsChecked" Value="False">
  90. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/无告警.png" />
  91. <Setter TargetName="bd1" Property="Visibility" Value="Collapsed" />
  92. </Trigger>
  93. <MultiDataTrigger>
  94. <MultiDataTrigger.Conditions>
  95. <Condition Binding="{Binding IsCheck}" Value="true" />
  96. <Condition Binding="{Binding IsAlarm}" Value="true" />
  97. </MultiDataTrigger.Conditions>
  98. <MultiDataTrigger.Setters>
  99. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
  100. <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
  101. </MultiDataTrigger.Setters>
  102. </MultiDataTrigger>
  103. </ControlTemplate.Triggers>
  104. </ControlTemplate>
  105. </Setter.Value>
  106. </Setter>
  107. </Style.Setters>
  108. </Style>
  109. <Style x:Key="StatusBtnStyle网络连接状态" TargetType="ToggleButton">
  110. <Style.Setters>
  111. <Setter Property="Width" Value="20" />
  112. <Setter Property="Height" Value="25" />
  113. <Setter Property="Cursor" Value="Hand" />
  114. <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
  115. <Setter Property="Template">
  116. <Setter.Value>
  117. <ControlTemplate TargetType="ToggleButton">
  118. <Grid Cursor="Hand">
  119. <Image
  120. x:Name="image1"
  121. Width="{TemplateBinding Width}"
  122. Height="{TemplateBinding Height}"
  123. Panel.ZIndex="0"
  124. RenderOptions.BitmapScalingMode="HighQuality"
  125. SnapsToDevicePixels="True"
  126. Source="/BPASmartClient.CustomResource;component/Image/告警/Wifi_NO.png"
  127. UseLayoutRounding="True" />
  128. </Grid>
  129. <ControlTemplate.Triggers>
  130. <Trigger Property="IsChecked" Value="true">
  131. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
  132. </Trigger>
  133. <MultiDataTrigger>
  134. <MultiDataTrigger.Conditions>
  135. <Condition Binding="{Binding IsCheck}" Value="true" />
  136. <Condition Binding="{Binding IsAlarm}" Value="true" />
  137. </MultiDataTrigger.Conditions>
  138. <MultiDataTrigger.Setters>
  139. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
  140. </MultiDataTrigger.Setters>
  141. </MultiDataTrigger>
  142. </ControlTemplate.Triggers>
  143. </ControlTemplate>
  144. </Setter.Value>
  145. </Setter>
  146. </Style.Setters>
  147. </Style>
  148. <!--#endregion-->
  149. <!--#region Image-->
  150. <Style TargetType="Image">
  151. <Style.Setters>
  152. <Setter Property="UseLayoutRounding" Value="True" />
  153. <Setter Property="SnapsToDevicePixels" Value="True" />
  154. <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
  155. </Style.Setters>
  156. </Style>
  157. <Style x:Key="imagetop_维护" TargetType="Image">
  158. <Style.Setters>
  159. <Setter Property="Width" Value="20" />
  160. <Setter Property="Height" Value="22" />
  161. <Setter Property="VerticalAlignment" Value="Top" />
  162. <Setter Property="HorizontalAlignment" Value="Center" />
  163. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  164. </Style.Setters>
  165. </Style>
  166. <Style x:Key="imagetop_功能列表" TargetType="Image">
  167. <Style.Setters>
  168. <Setter Property="Width" Value="20" />
  169. <Setter Property="Height" Value="22" />
  170. <Setter Property="VerticalAlignment" Value="Top" />
  171. <Setter Property="HorizontalAlignment" Value="Center" />
  172. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  173. </Style.Setters>
  174. </Style>
  175. <Style x:Key="imagetop_产品制作" TargetType="Image">
  176. <Style.Setters>
  177. <Setter Property="Width" Value="20" />
  178. <Setter Property="Height" Value="22" />
  179. <Setter Property="VerticalAlignment" Value="Top" />
  180. <Setter Property="HorizontalAlignment" Value="Center" />
  181. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  182. </Style.Setters>
  183. </Style>
  184. <Style x:Key="imagetop_L" TargetType="Image">
  185. <Style.Setters>
  186. <Setter Property="Height" Value="80" />
  187. <Setter Property="VerticalAlignment" Value="Top" />
  188. <Setter Property="HorizontalAlignment" Value="Left" />
  189. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  190. </Style.Setters>
  191. </Style>
  192. <Style x:Key="imagetop_Title" TargetType="Image">
  193. <Style.Setters>
  194. <Setter Property="Width" Value="250" />
  195. <Setter Property="VerticalAlignment" Value="Top" />
  196. <Setter Property="HorizontalAlignment" Value="Left" />
  197. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/黑菠萝智慧餐饮管理系统.png" />
  198. </Style.Setters>
  199. </Style>
  200. <Style x:Key="imagetop_矩形" TargetType="Image">
  201. <Style.Setters>
  202. <Setter Property="VerticalAlignment" Value="Top" />
  203. <Setter Property="HorizontalAlignment" Value="Left" />
  204. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  205. </Style.Setters>
  206. </Style>
  207. <Style x:Key="imagetop" TargetType="Image">
  208. <Style.Setters>
  209. <Setter Property="VerticalAlignment" Value="Top" />
  210. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  211. </Style.Setters>
  212. </Style>
  213. <Style x:Key="imagetop1" TargetType="Image">
  214. <Style.Setters>
  215. <Setter Property="VerticalAlignment" Value="Top" />
  216. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  217. </Style.Setters>
  218. </Style>
  219. <Style x:Key="image营销额" TargetType="Image">
  220. <Style.Setters>
  221. <Setter Property="VerticalAlignment" Value="Bottom" />
  222. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png" />
  223. </Style.Setters>
  224. </Style>
  225. <Style x:Key="imagetitletext" TargetType="Image">
  226. <Style.Setters>
  227. <Setter Property="Height" Value="20" />
  228. <Setter Property="VerticalAlignment" Value="Center" />
  229. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png" />
  230. </Style.Setters>
  231. </Style>
  232. <Style x:Key="image圆角矩形" TargetType="Image">
  233. <Style.Setters>
  234. <Setter Property="Height" Value="33" />
  235. <Setter Property="VerticalAlignment" Value="Center" />
  236. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png" />
  237. </Style.Setters>
  238. </Style>
  239. <Style x:Key="image黑菠萝科技" TargetType="Image">
  240. <Style.Setters>
  241. <Setter Property="HorizontalAlignment" Value="Center" />
  242. <Setter Property="Height" Value="24" />
  243. <Setter Property="Width" Value="70" />
  244. <Setter Property="VerticalAlignment" Value="Bottom" />
  245. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png" />
  246. </Style.Setters>
  247. </Style>
  248. <Style x:Key="MainBJ" TargetType="Image">
  249. <Style.Setters>
  250. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png" />
  251. </Style.Setters>
  252. </Style>
  253. <Style x:Key="TitleImage" TargetType="Image">
  254. <Style.Setters>
  255. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
  256. </Style.Setters>
  257. </Style>
  258. <Style x:Key="timeImage" TargetType="Image">
  259. <Style.Setters>
  260. <Setter Property="Width" Value="20" />
  261. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png" />
  262. </Style.Setters>
  263. </Style>
  264. <Style x:Key="image文字" TargetType="Image">
  265. <Style.Setters>
  266. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png" />
  267. </Style.Setters>
  268. </Style>
  269. <Style x:Key="image底部科技背景" TargetType="Image">
  270. <Style.Setters>
  271. <Setter Property="VerticalAlignment" Value="Bottom" />
  272. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png" />
  273. </Style.Setters>
  274. </Style>
  275. <Style x:Key="image个人信息" TargetType="Image">
  276. <Style.Setters>
  277. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png" />
  278. </Style.Setters>
  279. </Style>
  280. <Style x:Key="image维护" TargetType="Image">
  281. <Style.Setters>
  282. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  283. </Style.Setters>
  284. </Style>
  285. <Style x:Key="image标题其他" TargetType="Image">
  286. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png" />
  287. <Setter Property="Height" Value="12" />
  288. </Style>
  289. <Style x:Key="image告警" TargetType="Image">
  290. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png" />
  291. <Setter Property="Height" Value="24" />
  292. </Style>
  293. <Style x:Key="image有告警" TargetType="Image">
  294. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png" />
  295. <Setter Property="Height" Value="30" />
  296. </Style>
  297. <!--#endregion-->
  298. <!--#region Border-->
  299. <Style x:Key="FromBJ" TargetType="Border">
  300. <Style.Setters>
  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="button_no" TargetType="Border">
  309. <Style.Setters>
  310. <Setter Property="Background">
  311. <Setter.Value>
  312. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
  313. </Setter.Value>
  314. </Setter>
  315. </Style.Setters>
  316. </Style>
  317. <Style x:Key="button_select" TargetType="Border">
  318. <Style.Setters>
  319. <Setter Property="Background">
  320. <Setter.Value>
  321. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
  322. </Setter.Value>
  323. </Setter>
  324. </Style.Setters>
  325. </Style>
  326. <Style x:Key="bordertopL" TargetType="Border">
  327. <Style.Setters>
  328. <Setter Property="Height" Value="80" />
  329. <Setter Property="Width" Value="300" />
  330. <Setter Property="VerticalAlignment" Value="Top" />
  331. <Setter Property="HorizontalAlignment" Value="Left" />
  332. <Setter Property="Background">
  333. <Setter.Value>
  334. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  335. </Setter.Value>
  336. </Setter>
  337. </Style.Setters>
  338. </Style>
  339. <Style x:Key="border阴影边框" TargetType="Border">
  340. <Style.Setters>
  341. <Setter Property="Height" Value="50" />
  342. <Setter Property="VerticalAlignment" Value="Top" />
  343. <Setter Property="Background">
  344. <Setter.Value>
  345. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  346. </Setter.Value>
  347. </Setter>
  348. </Style.Setters>
  349. </Style>
  350. <Style x:Key="border阴影边框扩展" TargetType="Border">
  351. <Style.Setters>
  352. <Setter Property="Background">
  353. <Setter.Value>
  354. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  355. </Setter.Value>
  356. </Setter>
  357. </Style.Setters>
  358. </Style>
  359. <Style x:Key="border边角" TargetType="Border">
  360. <Style.Setters>
  361. <Setter Property="Background">
  362. <Setter.Value>
  363. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
  364. </Setter.Value>
  365. </Setter>
  366. </Style.Setters>
  367. </Style>
  368. <Style x:Key="bordertop矩形" TargetType="Border">
  369. <Style.Setters>
  370. <Setter Property="Background">
  371. <Setter.Value>
  372. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  373. </Setter.Value>
  374. </Setter>
  375. </Style.Setters>
  376. </Style>
  377. <Style x:Key="bordertopTitle" TargetType="Border">
  378. <Style.Setters>
  379. <Setter Property="Height" Value="100" />
  380. <Setter Property="Background">
  381. <Setter.Value>
  382. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  383. </Setter.Value>
  384. </Setter>
  385. </Style.Setters>
  386. </Style>
  387. <Style x:Key="borderFromTitle" TargetType="Border">
  388. <Style.Setters>
  389. <Setter Property="Background">
  390. <Setter.Value>
  391. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
  392. </Setter.Value>
  393. </Setter>
  394. </Style.Setters>
  395. </Style>
  396. <Style x:Key="border窗体背景1" TargetType="Border">
  397. <Style.Setters>
  398. <Setter Property="Background">
  399. <Setter.Value>
  400. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
  401. </Setter.Value>
  402. </Setter>
  403. </Style.Setters>
  404. </Style>
  405. <Style x:Key="border窗体背景2" TargetType="Border">
  406. <Style.Setters>
  407. <Setter Property="Background">
  408. <Setter.Value>
  409. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
  410. </Setter.Value>
  411. </Setter>
  412. </Style.Setters>
  413. </Style>
  414. <Style x:Key="borderPop_bg" TargetType="Border">
  415. <Style.Setters>
  416. <Setter Property="Background">
  417. <Setter.Value>
  418. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  419. </Setter.Value>
  420. </Setter>
  421. </Style.Setters>
  422. </Style>
  423. <Style x:Key="border背景two" TargetType="Border">
  424. <Style.Setters>
  425. <Setter Property="Background">
  426. <Setter.Value>
  427. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
  428. </Setter.Value>
  429. </Setter>
  430. </Style.Setters>
  431. </Style>
  432. <Style x:Key="border窗体背景3" TargetType="Border">
  433. <Style.Setters>
  434. <Setter Property="Background">
  435. <Setter.Value>
  436. <ImageBrush
  437. ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
  438. Opacity="1"
  439. Stretch="Fill"
  440. TileMode="FlipX"
  441. Viewbox="0,0,1,1"
  442. ViewboxUnits="RelativeToBoundingBox" />
  443. </Setter.Value>
  444. </Setter>
  445. </Style.Setters>
  446. </Style>
  447. <Style x:Key="border窗体背景4" TargetType="Border">
  448. <Style.Setters>
  449. <Setter Property="Background">
  450. <Setter.Value>
  451. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
  452. </Setter.Value>
  453. </Setter>
  454. </Style.Setters>
  455. </Style>
  456. <Style x:Key="border窗体背景5" TargetType="Border">
  457. <Style.Setters>
  458. <Setter Property="Background">
  459. <Setter.Value>
  460. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
  461. </Setter.Value>
  462. </Setter>
  463. </Style.Setters>
  464. </Style>
  465. <Style x:Key="border窗体背景6" TargetType="Border">
  466. <Style.Setters>
  467. <Setter Property="Background">
  468. <Setter.Value>
  469. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
  470. </Setter.Value>
  471. </Setter>
  472. </Style.Setters>
  473. </Style>
  474. <Style x:Key="border窗体背景7" TargetType="Border">
  475. <Style.Setters>
  476. <Setter Property="Background">
  477. <Setter.Value>
  478. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
  479. </Setter.Value>
  480. </Setter>
  481. </Style.Setters>
  482. </Style>
  483. <Style x:Key="border圆角矩形" TargetType="Border">
  484. <Style.Setters>
  485. <Setter Property="BorderThickness" Value="3" />
  486. <Setter Property="Background">
  487. <Setter.Value>
  488. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
  489. </Setter.Value>
  490. </Setter>
  491. </Style.Setters>
  492. </Style>
  493. <Style x:Key="border不规则矩形" TargetType="Border">
  494. <Style.Setters>
  495. <Setter Property="BorderThickness" Value="0.5" />
  496. <Setter Property="Background">
  497. <Setter.Value>
  498. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
  499. </Setter.Value>
  500. </Setter>
  501. </Style.Setters>
  502. </Style>
  503. <Style x:Key="border矩形" TargetType="Border">
  504. <Style.Setters>
  505. <Setter Property="Background">
  506. <Setter.Value>
  507. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  508. </Setter.Value>
  509. </Setter>
  510. </Style.Setters>
  511. </Style>
  512. <Style x:Key="border顶部背景" TargetType="Border">
  513. <Style.Setters>
  514. <Setter Property="Background">
  515. <Setter.Value>
  516. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
  517. </Setter.Value>
  518. </Setter>
  519. <Setter Property="BorderBrush">
  520. <Setter.Value>
  521. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  522. </Setter.Value>
  523. </Setter>
  524. <Setter Property="BorderThickness" Value="0,0,0,1" />
  525. </Style.Setters>
  526. </Style>
  527. <Style x:Key="border标题背景" TargetType="Border">
  528. <Style.Setters>
  529. <Setter Property="Background">
  530. <Setter.Value>
  531. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png" />
  532. </Setter.Value>
  533. </Setter>
  534. </Style.Setters>
  535. </Style>
  536. <Style x:Key="border主窗体背景" TargetType="Border">
  537. <Style.Setters>
  538. <Setter Property="Background">
  539. <Setter.Value>
  540. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png" />
  541. </Setter.Value>
  542. </Setter>
  543. </Style.Setters>
  544. </Style>
  545. <Style x:Key="border界面背景" TargetType="Border">
  546. <Style.Setters>
  547. <Setter Property="Background">
  548. <Setter.Value>
  549. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景2.png" />
  550. </Setter.Value>
  551. </Setter>
  552. </Style.Setters>
  553. </Style>
  554. <Style x:Key="border顶部标题背景" TargetType="Border">
  555. <Style.Setters>
  556. <Setter Property="Background">
  557. <Setter.Value>
  558. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  559. </Setter.Value>
  560. </Setter>
  561. </Style.Setters>
  562. </Style>
  563. <Style x:Key="border竖线" TargetType="Border">
  564. <Style.Setters>
  565. <Setter Property="Width" Value="1" />
  566. <Setter Property="Height" Value="40" />
  567. <Setter Property="BorderThickness" Value="0" />
  568. <Setter Property="Margin" Value="5" />
  569. <Setter Property="Background">
  570. <Setter.Value>
  571. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
  572. </Setter.Value>
  573. </Setter>
  574. </Style.Setters>
  575. </Style>
  576. <Style x:Key="border内部" TargetType="Border">
  577. <Style.Setters>
  578. <Setter Property="Width" Value="320" />
  579. <Setter Property="HorizontalAlignment" Value="Stretch" />
  580. <Setter Property="VerticalAlignment" Value="Stretch" />
  581. <Setter Property="BorderThickness" Value="0" />
  582. <Setter Property="Margin" Value="5" />
  583. <Setter Property="Background">
  584. <Setter.Value>
  585. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
  586. </Setter.Value>
  587. </Setter>
  588. </Style.Setters>
  589. </Style>
  590. <Style x:Key="border矩形2" TargetType="Border">
  591. <Style.Setters>
  592. <Setter Property="Margin" Value="0,0,10,0" />
  593. <Setter Property="VerticalAlignment" Value="Top" />
  594. <Setter Property="HorizontalAlignment" Value="Left" />
  595. <Setter Property="Width" Value="92" />
  596. <Setter Property="Height" Value="46" />
  597. <Setter Property="BorderThickness" Value="0" />
  598. <Setter Property="Background">
  599. <Setter.Value>
  600. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png" />
  601. </Setter.Value>
  602. </Setter>
  603. </Style.Setters>
  604. </Style>
  605. <Style x:Key="border矢量智能对象" TargetType="Border">
  606. <Style.Setters>
  607. <Setter Property="Width" Value="1" />
  608. <Setter Property="Height" Value="40" />
  609. <Setter Property="BorderThickness" Value="0" />
  610. <Setter Property="Margin" Value="5" />
  611. <Setter Property="Background">
  612. <Setter.Value>
  613. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png" />
  614. </Setter.Value>
  615. </Setter>
  616. </Style.Setters>
  617. </Style>
  618. <Style x:Key="border边框" TargetType="Border">
  619. <Style.Setters>
  620. <Setter Property="Background">
  621. <Setter.Value>
  622. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
  623. </Setter.Value>
  624. </Setter>
  625. </Style.Setters>
  626. </Style>
  627. <Style x:Key="border边框2" TargetType="Border">
  628. <Style.Setters>
  629. <Setter Property="Background">
  630. <Setter.Value>
  631. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
  632. </Setter.Value>
  633. </Setter>
  634. </Style.Setters>
  635. </Style>
  636. <Style x:Key="border右下" TargetType="Border">
  637. <Style.Setters>
  638. <Setter Property="HorizontalAlignment" Value="Right" />
  639. <Setter Property="VerticalAlignment" Value="Bottom" />
  640. <Setter Property="Height" Value="23" />
  641. <Setter Property="Width" Value="22" />
  642. <Setter Property="Background">
  643. <Setter.Value>
  644. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
  645. </Setter.Value>
  646. </Setter>
  647. </Style.Setters>
  648. </Style>
  649. <Style x:Key="border左下" TargetType="Border">
  650. <Style.Setters>
  651. <Setter Property="HorizontalAlignment" Value="Left" />
  652. <Setter Property="VerticalAlignment" Value="Bottom" />
  653. <Setter Property="Height" Value="22" />
  654. <Setter Property="Width" Value="23" />
  655. <Setter Property="Background">
  656. <Setter.Value>
  657. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
  658. </Setter.Value>
  659. </Setter>
  660. </Style.Setters>
  661. </Style>
  662. <Style x:Key="border左上" TargetType="Border">
  663. <Style.Setters>
  664. <Setter Property="HorizontalAlignment" Value="Left" />
  665. <Setter Property="VerticalAlignment" Value="Top" />
  666. <Setter Property="Height" Value="22" />
  667. <Setter Property="Width" Value="23" />
  668. <Setter Property="Background">
  669. <Setter.Value>
  670. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
  671. </Setter.Value>
  672. </Setter>
  673. </Style.Setters>
  674. </Style>
  675. <Style x:Key="border右上" TargetType="Border">
  676. <Style.Setters>
  677. <Setter Property="HorizontalAlignment" Value="Right" />
  678. <Setter Property="VerticalAlignment" Value="Top" />
  679. <Setter Property="Height" Value="23" />
  680. <Setter Property="Width" Value="22" />
  681. <Setter Property="Background">
  682. <Setter.Value>
  683. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
  684. </Setter.Value>
  685. </Setter>
  686. </Style.Setters>
  687. </Style>
  688. <!--#endregion-->
  689. <!--#region Button-->
  690. <Style x:Key="TitleBarStyle" TargetType="Button">
  691. <Setter Property="Foreground" Value="White" />
  692. <Setter Property="FontSize" Value="20" />
  693. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
  694. <Setter Property="Template">
  695. <Setter.Value>
  696. <ControlTemplate TargetType="Button">
  697. <Border Name="TitleBarBr" Background="Transparent">
  698. <ContentPresenter
  699. Margin="{TemplateBinding Margin}"
  700. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  701. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  702. </Border>
  703. <ControlTemplate.Triggers>
  704. <Trigger Property="IsMouseOver" Value="true">
  705. <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
  706. </Trigger>
  707. </ControlTemplate.Triggers>
  708. </ControlTemplate>
  709. </Setter.Value>
  710. </Setter>
  711. </Style>
  712. <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
  713. <Style.Setters>
  714. <Setter Property="VerticalContentAlignment" Value="Center" />
  715. <Setter Property="HorizontalContentAlignment" Value="Center" />
  716. <Setter Property="Cursor" Value="Hand" />
  717. <Setter Property="Width" Value="65" />
  718. <Setter Property="Height" Value="24" />
  719. <Setter Property="HorizontalAlignment" Value="Right" />
  720. <Setter Property="Template">
  721. <Setter.Value>
  722. <ControlTemplate TargetType="Button">
  723. <!--<ControlTemplate.Resources>
  724. <Storyboard x:Key="OnMouseEnter1">
  725. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  726. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  727. </ColorAnimationUsingKeyFrames>
  728. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  729. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  730. </ColorAnimationUsingKeyFrames>
  731. </Storyboard>
  732. </ControlTemplate.Resources>-->
  733. <Border x:Name="BD" CornerRadius="2">
  734. <Border.Background>
  735. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
  736. </Border.Background>
  737. <StackPanel
  738. Margin="5"
  739. HorizontalAlignment="Center"
  740. Orientation="Horizontal">
  741. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  742. <TextBlock
  743. x:Name="textBlock"
  744. Margin="5,0,0,0"
  745. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  746. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  747. FontSize="14"
  748. Foreground="#A5FFFFFF"
  749. Text="{TemplateBinding Content}" />
  750. </StackPanel>
  751. <VisualStateManager.VisualStateGroups>
  752. <VisualStateGroup x:Name="CommonStates">
  753. <VisualState x:Name="Normal" />
  754. <VisualState x:Name="MouseOver">
  755. <Storyboard>
  756. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  757. <EasingColorKeyFrame KeyTime="0" Value="White" />
  758. </ColorAnimationUsingKeyFrames>
  759. <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  760. <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
  761. </ColorAnimationUsingKeyFrames>
  762. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
  763. <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
  764. </DoubleAnimationUsingKeyFrames>
  765. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  766. <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
  767. </ColorAnimationUsingKeyFrames>-->
  768. </Storyboard>
  769. </VisualState>
  770. <VisualState x:Name="Pressed" />
  771. <VisualState x:Name="Disabled" />
  772. </VisualStateGroup>
  773. </VisualStateManager.VisualStateGroups>
  774. </Border>
  775. </ControlTemplate>
  776. </Setter.Value>
  777. </Setter>
  778. </Style.Setters>
  779. </Style>
  780. <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
  781. <Style.Setters>
  782. <Setter Property="VerticalContentAlignment" Value="Center" />
  783. <Setter Property="HorizontalContentAlignment" Value="Center" />
  784. <Setter Property="Cursor" Value="Hand" />
  785. <Setter Property="Width" Value="65" />
  786. <Setter Property="Height" Value="24" />
  787. <Setter Property="HorizontalAlignment" Value="Right" />
  788. <Setter Property="Template">
  789. <Setter.Value>
  790. <ControlTemplate TargetType="Button">
  791. <Border x:Name="BD" CornerRadius="2">
  792. <Border.Background>
  793. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
  794. </Border.Background>
  795. <StackPanel
  796. Margin="5"
  797. HorizontalAlignment="Center"
  798. Orientation="Horizontal">
  799. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  800. <TextBlock
  801. x:Name="textBlock"
  802. Margin="5,0,0,0"
  803. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  804. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  805. Foreground="#A5FFFFFF"
  806. Text="{TemplateBinding Content}" />
  807. </StackPanel>
  808. <VisualStateManager.VisualStateGroups>
  809. <VisualStateGroup x:Name="CommonStates">
  810. <VisualState x:Name="Normal" />
  811. <VisualState x:Name="MouseOver">
  812. <Storyboard>
  813. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  814. <EasingColorKeyFrame KeyTime="0" Value="White" />
  815. </ColorAnimationUsingKeyFrames>
  816. </Storyboard>
  817. </VisualState>
  818. <VisualState x:Name="Pressed" />
  819. <VisualState x:Name="Disabled" />
  820. </VisualStateGroup>
  821. </VisualStateManager.VisualStateGroups>
  822. </Border>
  823. </ControlTemplate>
  824. </Setter.Value>
  825. </Setter>
  826. </Style.Setters>
  827. </Style>
  828. <Style x:Key="CommonBtn_1" TargetType="Button">
  829. <Style.Setters>
  830. <Setter Property="VerticalContentAlignment" Value="Center" />
  831. <Setter Property="Cursor" Value="Hand" />
  832. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  833. <Setter Property="Width" Value="65" />
  834. <Setter Property="Height" Value="24" />
  835. <Setter Property="Template">
  836. <Setter.Value>
  837. <ControlTemplate TargetType="Button">
  838. <ControlTemplate.Resources>
  839. <Storyboard x:Key="OnMouseEnter1">
  840. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
  841. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
  842. </ColorAnimationUsingKeyFrames>
  843. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  844. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
  845. </ColorAnimationUsingKeyFrames>
  846. </Storyboard>
  847. </ControlTemplate.Resources>
  848. <Border
  849. x:Name="BD"
  850. Background="Transparent"
  851. BorderBrush="#05408a"
  852. BorderThickness="1"
  853. CornerRadius="12">
  854. <TextBlock
  855. x:Name="textBlock"
  856. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  857. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  858. FontSize="12"
  859. Foreground="{DynamicResource foreground}"
  860. Text="{TemplateBinding Content}" />
  861. </Border>
  862. <ControlTemplate.Triggers>
  863. <Trigger Property="IsMouseOver" Value="true">
  864. <Setter TargetName="BD" Property="Background" Value="#009dff" />
  865. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
  866. </Trigger>
  867. <Trigger Property="IsEnabled" Value="False">
  868. <Setter TargetName="BD" Property="Background" Value="#ff55" />
  869. </Trigger>
  870. </ControlTemplate.Triggers>
  871. </ControlTemplate>
  872. </Setter.Value>
  873. </Setter>
  874. </Style.Setters>
  875. </Style>
  876. <Style TargetType="Button">
  877. <Style.Setters>
  878. <Setter Property="VerticalContentAlignment" Value="Center" />
  879. <Setter Property="Cursor" Value="Hand" />
  880. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  881. <Setter Property="Height" Value="25" />
  882. <Setter Property="Template">
  883. <Setter.Value>
  884. <ControlTemplate TargetType="Button">
  885. <Border x:Name="BD" Cursor="Hand">
  886. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  887. <!--<Border Width="16" Margin="5">
  888. <Border.Background>
  889. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  890. </Border.Background>
  891. </Border>-->
  892. <TextBlock
  893. x:Name="textBlock"
  894. Margin="10,0,10,0"
  895. VerticalAlignment="Center"
  896. FontSize="14"
  897. Foreground="#4fade8"
  898. Text="{TemplateBinding Content}" />
  899. <!-- Text="{TemplateBinding Content}" -->
  900. </StackPanel>
  901. </Border>
  902. <ControlTemplate.Triggers>
  903. <Trigger Property="IsMouseOver" Value="true">
  904. <Setter TargetName="BD" Property="Background">
  905. <Setter.Value>
  906. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  907. </Setter.Value>
  908. </Setter>
  909. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  910. </Trigger>
  911. <Trigger Property="IsMouseOver" Value="False">
  912. <Setter TargetName="BD" Property="Background">
  913. <Setter.Value>
  914. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  915. </Setter.Value>
  916. </Setter>
  917. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  918. </Trigger>
  919. <Trigger Property="IsEnabled" Value="False">
  920. <Setter TargetName="BD" Property="Background">
  921. <Setter.Value>
  922. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  923. </Setter.Value>
  924. </Setter>
  925. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  926. </Trigger>
  927. </ControlTemplate.Triggers>
  928. </ControlTemplate>
  929. </Setter.Value>
  930. </Setter>
  931. </Style.Setters>
  932. </Style>
  933. <Style x:Key="CommonBtn_返回" TargetType="Button">
  934. <Style.Setters>
  935. <Setter Property="VerticalContentAlignment" Value="Center" />
  936. <Setter Property="Cursor" Value="Hand" />
  937. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  938. <Setter Property="Width" Value="68" />
  939. <Setter Property="Height" Value="25" />
  940. <Setter Property="Template">
  941. <Setter.Value>
  942. <ControlTemplate TargetType="Button">
  943. <Border x:Name="BD" Cursor="Hand">
  944. <StackPanel
  945. Margin="5,0,10,0"
  946. HorizontalAlignment="Right"
  947. Orientation="Horizontal">
  948. <Border Width="16" Margin="5">
  949. <Border.Background>
  950. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  951. </Border.Background>
  952. </Border>
  953. <TextBlock
  954. x:Name="textBlock"
  955. VerticalAlignment="Center"
  956. FontSize="14"
  957. Foreground="#4fade8"
  958. Text="{TemplateBinding Content}" />
  959. <!-- Text="{TemplateBinding Content}" -->
  960. </StackPanel>
  961. </Border>
  962. <ControlTemplate.Triggers>
  963. <Trigger Property="IsMouseOver" Value="true">
  964. <Setter TargetName="BD" Property="Background">
  965. <Setter.Value>
  966. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  967. </Setter.Value>
  968. </Setter>
  969. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  970. </Trigger>
  971. <Trigger Property="IsMouseOver" Value="False">
  972. <Setter TargetName="BD" Property="Background">
  973. <Setter.Value>
  974. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  975. </Setter.Value>
  976. </Setter>
  977. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  978. </Trigger>
  979. <Trigger Property="IsEnabled" Value="False">
  980. <Setter TargetName="BD" Property="Background">
  981. <Setter.Value>
  982. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  983. </Setter.Value>
  984. </Setter>
  985. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  986. </Trigger>
  987. </ControlTemplate.Triggers>
  988. </ControlTemplate>
  989. </Setter.Value>
  990. </Setter>
  991. </Style.Setters>
  992. </Style>
  993. <Style TargetType="{x:Type Separator}">
  994. <Setter Property="Height" Value="1" />
  995. <Setter Property="Margin" Value="0,4,0,4" />
  996. <Setter Property="Template">
  997. <Setter.Value>
  998. <ControlTemplate TargetType="{x:Type Separator}">
  999. <Border>
  1000. <Border.Background>
  1001. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  1002. </Border.Background>
  1003. </Border>
  1004. </ControlTemplate>
  1005. </Setter.Value>
  1006. </Setter>
  1007. </Style>
  1008. <Style x:Key="CommonBtn_功能节点" TargetType="Button">
  1009. <Style.Setters>
  1010. <Setter Property="VerticalContentAlignment" Value="Center" />
  1011. <Setter Property="Cursor" Value="Hand" />
  1012. <Setter Property="Margin" Value="10,5,10,5" />
  1013. <Setter Property="Template">
  1014. <Setter.Value>
  1015. <ControlTemplate TargetType="Button">
  1016. <StackPanel x:Name="BD" Orientation="Horizontal">
  1017. <Image
  1018. Width="24"
  1019. Margin="5"
  1020. Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
  1021. <TextBlock
  1022. x:Name="textBlock"
  1023. Margin="10,0,0,0"
  1024. HorizontalAlignment="Left"
  1025. VerticalAlignment="Center"
  1026. FontSize="12"
  1027. Foreground="#00c1c3"
  1028. Text="{TemplateBinding Content}" />
  1029. <TextBlock
  1030. x:Name="tex2tBlock"
  1031. VerticalAlignment="Center"
  1032. FontSize="14"
  1033. Foreground="#4fade8"
  1034. Text="{TemplateBinding Content}"
  1035. Visibility="Collapsed" />
  1036. </StackPanel>
  1037. <ControlTemplate.Triggers>
  1038. <Trigger Property="IsMouseOver" Value="true">
  1039. <Setter TargetName="BD" Property="Background">
  1040. <Setter.Value>
  1041. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1042. </Setter.Value>
  1043. </Setter>
  1044. </Trigger>
  1045. <Trigger Property="IsMouseOver" Value="False">
  1046. <Setter TargetName="BD" Property="Background">
  1047. <Setter.Value>
  1048. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1049. </Setter.Value>
  1050. </Setter>
  1051. </Trigger>
  1052. </ControlTemplate.Triggers>
  1053. </ControlTemplate>
  1054. </Setter.Value>
  1055. </Setter>
  1056. </Style.Setters>
  1057. </Style>
  1058. <Style x:Key="CommonBtn_产品制作" TargetType="Button">
  1059. <Style.Setters>
  1060. <Setter Property="VerticalContentAlignment" Value="Center" />
  1061. <Setter Property="Cursor" Value="Hand" />
  1062. <Setter Property="Template">
  1063. <Setter.Value>
  1064. <ControlTemplate TargetType="Button">
  1065. <StackPanel x:Name="BD" Margin="5">
  1066. <Image
  1067. Width="24"
  1068. Margin="5,10,5,0"
  1069. Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  1070. <TextBlock
  1071. x:Name="textBlock"
  1072. VerticalAlignment="Center"
  1073. FontSize="14"
  1074. Foreground="#4fade8"
  1075. Text="{TemplateBinding Content}"
  1076. Visibility="Collapsed" />
  1077. <Separator Margin="0,10,0,0" />
  1078. </StackPanel>
  1079. <ControlTemplate.Triggers>
  1080. <Trigger Property="IsMouseOver" Value="true">
  1081. <Setter TargetName="BD" Property="Background">
  1082. <Setter.Value>
  1083. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1084. </Setter.Value>
  1085. </Setter>
  1086. </Trigger>
  1087. <Trigger Property="IsMouseOver" Value="False">
  1088. <Setter TargetName="BD" Property="Background">
  1089. <Setter.Value>
  1090. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1091. </Setter.Value>
  1092. </Setter>
  1093. </Trigger>
  1094. </ControlTemplate.Triggers>
  1095. </ControlTemplate>
  1096. </Setter.Value>
  1097. </Setter>
  1098. </Style.Setters>
  1099. </Style>
  1100. <Style x:Key="CommonBtn_功能列表" TargetType="Button">
  1101. <Style.Setters>
  1102. <Setter Property="VerticalContentAlignment" Value="Center" />
  1103. <Setter Property="Cursor" Value="Hand" />
  1104. <Setter Property="Template">
  1105. <Setter.Value>
  1106. <ControlTemplate TargetType="Button">
  1107. <StackPanel x:Name="BD" Margin="5">
  1108. <Image
  1109. Width="24"
  1110. Margin="5,10,5,0"
  1111. Source="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  1112. <TextBlock
  1113. x:Name="textBlock"
  1114. VerticalAlignment="Center"
  1115. FontSize="14"
  1116. Foreground="#4fade8"
  1117. Text="{TemplateBinding Content}"
  1118. Visibility="Collapsed" />
  1119. <Separator Margin="0,10,0,0" />
  1120. </StackPanel>
  1121. <ControlTemplate.Triggers>
  1122. <Trigger Property="IsMouseOver" Value="true">
  1123. <Setter TargetName="BD" Property="Background">
  1124. <Setter.Value>
  1125. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1126. </Setter.Value>
  1127. </Setter>
  1128. </Trigger>
  1129. <Trigger Property="IsMouseOver" Value="False">
  1130. <Setter TargetName="BD" Property="Background">
  1131. <Setter.Value>
  1132. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1133. </Setter.Value>
  1134. </Setter>
  1135. </Trigger>
  1136. </ControlTemplate.Triggers>
  1137. </ControlTemplate>
  1138. </Setter.Value>
  1139. </Setter>
  1140. </Style.Setters>
  1141. </Style>
  1142. <Style x:Key="CommonBtn_维护" TargetType="Button">
  1143. <Style.Setters>
  1144. <Setter Property="VerticalContentAlignment" Value="Center" />
  1145. <Setter Property="Cursor" Value="Hand" />
  1146. <Setter Property="Template">
  1147. <Setter.Value>
  1148. <ControlTemplate TargetType="Button">
  1149. <StackPanel x:Name="BD" Margin="5">
  1150. <Image
  1151. Width="24"
  1152. Margin="5,10,5,0"
  1153. Source="/BPASmartClient.CustomResource;component/Image/维护.png" />
  1154. <TextBlock
  1155. x:Name="textBlock"
  1156. VerticalAlignment="Center"
  1157. FontSize="14"
  1158. Foreground="#4fade8"
  1159. Text="{TemplateBinding Content}"
  1160. Visibility="Collapsed" />
  1161. <Separator Margin="0,10,0,0" />
  1162. </StackPanel>
  1163. <ControlTemplate.Triggers>
  1164. <Trigger Property="IsMouseOver" Value="true">
  1165. <Setter TargetName="BD" Property="Background">
  1166. <Setter.Value>
  1167. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1168. </Setter.Value>
  1169. </Setter>
  1170. </Trigger>
  1171. <Trigger Property="IsMouseOver" Value="False">
  1172. <Setter TargetName="BD" Property="Background">
  1173. <Setter.Value>
  1174. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1175. </Setter.Value>
  1176. </Setter>
  1177. </Trigger>
  1178. </ControlTemplate.Triggers>
  1179. </ControlTemplate>
  1180. </Setter.Value>
  1181. </Setter>
  1182. </Style.Setters>
  1183. </Style>
  1184. <Style x:Key="Comm8" TargetType="Button">
  1185. <Style.Setters>
  1186. <Setter Property="VerticalContentAlignment" Value="Center" />
  1187. <Setter Property="Cursor" Value="Hand" />
  1188. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1189. <Setter Property="Width" Value="69" />
  1190. <Setter Property="Height" Value="25" />
  1191. <Setter Property="Template">
  1192. <Setter.Value>
  1193. <ControlTemplate TargetType="Button">
  1194. <!--<ControlTemplate.Resources>
  1195. <Storyboard x:Key="OnMouseEnter1">
  1196. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  1197. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  1198. </ColorAnimationUsingKeyFrames>
  1199. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  1200. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  1201. </ColorAnimationUsingKeyFrames>
  1202. </Storyboard>
  1203. </ControlTemplate.Resources>-->
  1204. <Border x:Name="BD" Cursor="Hand">
  1205. <TextBlock
  1206. x:Name="textBlock"
  1207. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1208. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1209. FontSize="12"
  1210. Foreground="{DynamicResource foreground}"
  1211. Text="{TemplateBinding Content}" />
  1212. </Border>
  1213. <ControlTemplate.Triggers>
  1214. <Trigger Property="IsMouseOver" Value="true">
  1215. <Setter TargetName="BD" Property="Background">
  1216. <Setter.Value>
  1217. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1218. </Setter.Value>
  1219. </Setter>
  1220. <Setter TargetName="textBlock" Property="Foreground" Value="White" />
  1221. </Trigger>
  1222. <Trigger Property="IsMouseOver" Value="False">
  1223. <Setter TargetName="BD" Property="Background">
  1224. <Setter.Value>
  1225. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  1226. </Setter.Value>
  1227. </Setter>
  1228. <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
  1229. </Trigger>
  1230. <Trigger Property="IsEnabled" Value="False">
  1231. <Setter TargetName="BD" Property="Background">
  1232. <Setter.Value>
  1233. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1234. </Setter.Value>
  1235. </Setter>
  1236. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  1237. </Trigger>
  1238. </ControlTemplate.Triggers>
  1239. </ControlTemplate>
  1240. </Setter.Value>
  1241. </Setter>
  1242. </Style.Setters>
  1243. </Style>
  1244. <!--#endregion-->
  1245. <!--#region TextBox-->
  1246. <Style
  1247. x:Key="TextBoxStyle人员"
  1248. BasedOn="{x:Null}"
  1249. TargetType="{x:Type TextBox}">
  1250. <Setter Property="Foreground" Value="#A4EBF7" />
  1251. <Setter Property="Background">
  1252. <Setter.Value>
  1253. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1254. </Setter.Value>
  1255. </Setter>
  1256. <Setter Property="FontSize" Value="14" />
  1257. <Setter Property="TextWrapping" Value="NoWrap" />
  1258. <Setter Property="BorderBrush" Value="Transparent" />
  1259. <Setter Property="BorderThickness" Value="1" />
  1260. <Setter Property="Padding" Value="1" />
  1261. <Setter Property="AllowDrop" Value="true" />
  1262. <Setter Property="HorizontalAlignment" Value="Left" />
  1263. <Setter Property="VerticalAlignment" Value="Center" />
  1264. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1265. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1266. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1267. <Setter Property="Height" Value="35" />
  1268. <Setter Property="Width" Value="auto" />
  1269. <Setter Property="MinWidth" Value="200" />
  1270. <Setter Property="Template">
  1271. <Setter.Value>
  1272. <ControlTemplate TargetType="{x:Type TextBox}">
  1273. <Themes:ListBoxChrome
  1274. x:Name="Bd"
  1275. Background="{TemplateBinding Background}"
  1276. BorderBrush="{TemplateBinding BorderBrush}"
  1277. BorderThickness="{TemplateBinding BorderThickness}"
  1278. RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
  1279. RenderMouseOver="{TemplateBinding IsMouseOver}"
  1280. SnapsToDevicePixels="true">
  1281. <Grid>
  1282. <Grid.ColumnDefinitions>
  1283. <ColumnDefinition Width="auto" />
  1284. <ColumnDefinition />
  1285. </Grid.ColumnDefinitions>
  1286. <Image
  1287. Width="20"
  1288. Height="Auto"
  1289. Margin="20,0,0,0"
  1290. HorizontalAlignment="Right"
  1291. Cursor="Hand"
  1292. Source="Image/搜索按钮.png"
  1293. Tag="Search" />
  1294. <ScrollViewer
  1295. x:Name="PART_ContentHost"
  1296. VerticalAlignment="Center"
  1297. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1298. <!--<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"/>-->
  1299. </Grid>
  1300. </Themes:ListBoxChrome>
  1301. <ControlTemplate.Triggers>
  1302. <Trigger Property="IsEnabled" Value="false">
  1303. <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  1304. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  1305. </Trigger>
  1306. </ControlTemplate.Triggers>
  1307. </ControlTemplate>
  1308. </Setter.Value>
  1309. </Setter>
  1310. <Style.Triggers>
  1311. <MultiTrigger>
  1312. <MultiTrigger.Conditions>
  1313. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1314. <Condition Property="IsSelectionActive" Value="false" />
  1315. </MultiTrigger.Conditions>
  1316. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1317. </MultiTrigger>
  1318. </Style.Triggers>
  1319. </Style>
  1320. <Style
  1321. x:Key="TextBoxStyle搜索框"
  1322. BasedOn="{x:Null}"
  1323. TargetType="{x:Type TextBox}">
  1324. <Setter Property="Foreground" Value="#A4EBF7" />
  1325. <Setter Property="FontSize" Value="14" />
  1326. <Setter Property="TextWrapping" Value="NoWrap" />
  1327. <Setter Property="BorderBrush" Value="Transparent" />
  1328. <Setter Property="BorderThickness" Value="1" />
  1329. <Setter Property="Margin" Value="10,0,0,0" />
  1330. <Setter Property="AllowDrop" Value="true" />
  1331. <Setter Property="CaretBrush" Value="Aqua" />
  1332. <Setter Property="Padding" Value="1" />
  1333. <Setter Property="HorizontalAlignment" Value="Left" />
  1334. <Setter Property="VerticalAlignment" Value="Center" />
  1335. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1336. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1337. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1338. <Setter Property="Height" Value="40" />
  1339. <Setter Property="Width" Value="135" />
  1340. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1341. <Setter Property="Template">
  1342. <Setter.Value>
  1343. <ControlTemplate TargetType="{x:Type TextBox}">
  1344. <Border x:Name="Bd" VerticalAlignment="Center">
  1345. <Border.Background>
  1346. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1347. </Border.Background>
  1348. <Grid>
  1349. <ScrollViewer
  1350. x:Name="PART_ContentHost"
  1351. VerticalAlignment="Center"
  1352. HorizontalScrollBarVisibility="Hidden"
  1353. VerticalScrollBarVisibility="Hidden" />
  1354. <Image
  1355. Width="20"
  1356. Margin="10,3,3,3"
  1357. HorizontalAlignment="Left"
  1358. Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
  1359. Stretch="Uniform" />
  1360. </Grid>
  1361. </Border>
  1362. <ControlTemplate.Triggers>
  1363. <Trigger Property="IsEnabled" Value="false">
  1364. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1365. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1366. </Trigger>
  1367. <Trigger Property="IsMouseOver" Value="true">
  1368. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1369. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1370. </Trigger>
  1371. <Trigger Property="IsKeyboardFocused" Value="true">
  1372. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1373. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1374. </Trigger>
  1375. </ControlTemplate.Triggers>
  1376. </ControlTemplate>
  1377. </Setter.Value>
  1378. </Setter>
  1379. <Style.Triggers>
  1380. <MultiTrigger>
  1381. <MultiTrigger.Conditions>
  1382. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1383. <Condition Property="IsSelectionActive" Value="false" />
  1384. </MultiTrigger.Conditions>
  1385. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1386. </MultiTrigger>
  1387. </Style.Triggers>
  1388. </Style>
  1389. <!--#endregion-->
  1390. <!--#region UserNameTextBoxStyle-->
  1391. <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
  1392. <GradientStop Offset="0.05" Color="#ABADB3" />
  1393. <GradientStop Offset="0.07" Color="#E2E3EA" />
  1394. <GradientStop Offset="1" Color="#E3E9EF" />
  1395. </LinearGradientBrush>
  1396. <Style
  1397. x:Key="UserNameTextBoxStyle"
  1398. BasedOn="{x:Null}"
  1399. TargetType="{x:Type TextBox}">
  1400. <Setter Property="Foreground" Value="White" />
  1401. <Setter Property="Background" Value="Transparent" />
  1402. <Setter Property="Padding" Value="1" />
  1403. <Setter Property="CaretBrush" Value="Aqua" />
  1404. <Setter Property="Height" Value="40" />
  1405. <Setter Property="Width" Value="135" />
  1406. <Setter Property="HorizontalContentAlignment" Value="Center" />
  1407. <Setter Property="FontSize" Value="16" />
  1408. <Setter Property="HorizontalAlignment" Value="Left" />
  1409. <Setter Property="AllowDrop" Value="true" />
  1410. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1411. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1412. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1413. <Setter Property="Template">
  1414. <Setter.Value>
  1415. <ControlTemplate TargetType="{x:Type TextBox}">
  1416. <Border x:Name="Bd" VerticalAlignment="Center">
  1417. <Grid>
  1418. <ScrollViewer
  1419. x:Name="PART_ContentHost"
  1420. VerticalAlignment="Center"
  1421. HorizontalScrollBarVisibility="Hidden"
  1422. VerticalScrollBarVisibility="Hidden" />
  1423. <Path
  1424. x:Name="p1"
  1425. Stroke="#7720FDFA"
  1426. StrokeThickness="1">
  1427. <Path.Data>
  1428. <PathGeometry>
  1429. <PathFigure IsClosed="False" StartPoint="1, 1">
  1430. <LineSegment Point="133,1" />
  1431. <LineSegment Point="133,38" />
  1432. <LineSegment Point="1,38" />
  1433. <LineSegment Point="1,1" />
  1434. </PathFigure>
  1435. </PathGeometry>
  1436. </Path.Data>
  1437. </Path>
  1438. <Path
  1439. Name="p2"
  1440. Stroke="#aa20FDFA"
  1441. StrokeThickness="3">
  1442. <Path.Data>
  1443. <PathGeometry>
  1444. <PathFigure IsClosed="False" StartPoint="10, 1">
  1445. <LineSegment Point="1,1" />
  1446. <LineSegment Point="1,10" />
  1447. </PathFigure>
  1448. </PathGeometry>
  1449. </Path.Data>
  1450. </Path>
  1451. <Path
  1452. Name="p3"
  1453. Stroke="#aa20FDFA"
  1454. StrokeThickness="3">
  1455. <Path.Data>
  1456. <PathGeometry>
  1457. <PathFigure IsClosed="False" StartPoint="125, 1">
  1458. <LineSegment Point="133,1" />
  1459. <LineSegment Point="133,10" />
  1460. </PathFigure>
  1461. </PathGeometry>
  1462. </Path.Data>
  1463. </Path>
  1464. <Path
  1465. x:Name="p4"
  1466. Stroke="#aa20FDFA"
  1467. StrokeThickness="3">
  1468. <Path.Data>
  1469. <PathGeometry>
  1470. <PathFigure IsClosed="False" StartPoint="125, 38">
  1471. <LineSegment Point="133,38" />
  1472. <LineSegment Point="133,30" />
  1473. </PathFigure>
  1474. </PathGeometry>
  1475. </Path.Data>
  1476. </Path>
  1477. <Path
  1478. x:Name="p5"
  1479. Stroke="#aa20FDFA"
  1480. StrokeThickness="3">
  1481. <Path.Data>
  1482. <PathGeometry>
  1483. <PathFigure IsClosed="False" StartPoint="1, 30">
  1484. <LineSegment Point="1,38" />
  1485. <LineSegment Point="10,38" />
  1486. </PathFigure>
  1487. </PathGeometry>
  1488. </Path.Data>
  1489. </Path>
  1490. </Grid>
  1491. </Border>
  1492. <ControlTemplate.Triggers>
  1493. <Trigger Property="IsEnabled" Value="false">
  1494. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1495. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1496. </Trigger>
  1497. <Trigger Property="IsMouseOver" Value="true">
  1498. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1499. <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
  1500. <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
  1501. <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
  1502. <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
  1503. <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
  1504. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1505. </Trigger>
  1506. <Trigger Property="IsKeyboardFocused" Value="true">
  1507. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1508. <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
  1509. <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
  1510. <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
  1511. <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
  1512. <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
  1513. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1514. </Trigger>
  1515. </ControlTemplate.Triggers>
  1516. </ControlTemplate>
  1517. </Setter.Value>
  1518. </Setter>
  1519. <Style.Triggers>
  1520. <MultiTrigger>
  1521. <MultiTrigger.Conditions>
  1522. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1523. <Condition Property="IsSelectionActive" Value="false" />
  1524. </MultiTrigger.Conditions>
  1525. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1526. </MultiTrigger>
  1527. </Style.Triggers>
  1528. </Style>
  1529. <!--#endregion-->
  1530. <!--#region TextBlock-->
  1531. <Style TargetType="TextBlock">
  1532. <Style.Setters>
  1533. <Setter Property="Foreground" Value="#a2c2e8" />
  1534. <Setter Property="HorizontalAlignment" Value="Left" />
  1535. <Setter Property="VerticalAlignment" Value="Center" />
  1536. <Setter Property="FontSize" Value="20" />
  1537. </Style.Setters>
  1538. </Style>
  1539. <Style x:Key="Title" TargetType="TextBlock">
  1540. <Setter Property="FontSize" Value="18" />
  1541. <Setter Property="Foreground" Value="#FF58C7EE" />
  1542. <Setter Property="VerticalAlignment" Value="Center" />
  1543. <Setter Property="HorizontalAlignment" Value="Center" />
  1544. </Style>
  1545. <!--#endregion-->
  1546. <!--#region GroupBox-->
  1547. <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
  1548. <Style TargetType="{x:Type GroupBox}">
  1549. <Setter Property="BorderThickness" Value="0" />
  1550. <Setter Property="Background" Value="Transparent" />
  1551. <Setter Property="Foreground" Value="#FF68D8FE" />
  1552. <Setter Property="Template">
  1553. <Setter.Value>
  1554. <ControlTemplate TargetType="{x:Type GroupBox}">
  1555. <Grid SnapsToDevicePixels="true">
  1556. <Grid.ColumnDefinitions>
  1557. <ColumnDefinition Width="6" />
  1558. <ColumnDefinition Width="Auto" />
  1559. <ColumnDefinition Width="*" />
  1560. <ColumnDefinition Width="6" />
  1561. </Grid.ColumnDefinitions>
  1562. <Grid.RowDefinitions>
  1563. <RowDefinition Height="Auto" />
  1564. <RowDefinition Height="Auto" />
  1565. <RowDefinition Height="*" />
  1566. <RowDefinition Height="6" />
  1567. </Grid.RowDefinitions>
  1568. <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
  1569. <Border
  1570. Grid.Row="2"
  1571. Grid.RowSpan="2"
  1572. Grid.ColumnSpan="4"
  1573. Margin="0,0,0,0"
  1574. BorderThickness="0"
  1575. CornerRadius="0" />
  1576. <Image
  1577. Grid.Row="0"
  1578. Grid.RowSpan="2"
  1579. Grid.Column="1"
  1580. Height="4"
  1581. Margin="0,5,0,0"
  1582. HorizontalAlignment="Left"
  1583. Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
  1584. <Border
  1585. x:Name="Header"
  1586. Grid.Row="0"
  1587. Grid.RowSpan="2"
  1588. Grid.Column="1"
  1589. Height="30"
  1590. Margin="30,0,0,0"
  1591. Padding="3,1,3,0">
  1592. <ContentPresenter
  1593. VerticalAlignment="Center"
  1594. ContentSource="Header"
  1595. RecognizesAccessKey="True"
  1596. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1597. </Border>
  1598. <ContentPresenter
  1599. Grid.Row="2"
  1600. Grid.Column="1"
  1601. Grid.ColumnSpan="2"
  1602. Margin="{TemplateBinding Padding}"
  1603. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1604. </Grid>
  1605. </ControlTemplate>
  1606. </Setter.Value>
  1607. </Setter>
  1608. </Style>
  1609. <!--#endregion-->
  1610. <!-- 空MenuHeader -->
  1611. <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
  1612. <Setter Property="Height" Value="Auto" />
  1613. <Setter Property="Template">
  1614. <Setter.Value>
  1615. <ControlTemplate TargetType="{x:Type MenuItem}">
  1616. <Grid Margin="1">
  1617. <ContentPresenter
  1618. x:Name="Presenter"
  1619. Margin="{TemplateBinding Padding}"
  1620. ContentSource="Header" />
  1621. </Grid>
  1622. </ControlTemplate>
  1623. </Setter.Value>
  1624. </Setter>
  1625. </Style>
  1626. </ResourceDictionary>