终端一体化运控平台
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.
 
 
 

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