终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

2102 líneas
100 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 x:Key="image完成" TargetType="Image">
  170. <Style.Setters>
  171. <Setter Property="VerticalAlignment" Value="Stretch" />
  172. <Setter Property="HorizontalAlignment" Value="Stretch" />
  173. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/Cb_Checked.png" />
  174. </Style.Setters>
  175. </Style>
  176. <Style x:Key="image墙" 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/AGV/墙.png" />
  181. </Style.Setters>
  182. </Style>
  183. <Style TargetType="Image">
  184. <Style.Setters>
  185. <Setter Property="UseLayoutRounding" Value="True" />
  186. <Setter Property="SnapsToDevicePixels" Value="True" />
  187. <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
  188. </Style.Setters>
  189. </Style>
  190. <Style x:Key="imagetop_工艺流程" TargetType="Image">
  191. <Style.Setters>
  192. <Setter Property="VerticalAlignment" Value="Stretch" />
  193. <Setter Property="HorizontalAlignment" Value="Stretch" />
  194. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/工艺流程.png" />
  195. </Style.Setters>
  196. </Style>
  197. <Style x:Key="imagetop_维护" TargetType="Image">
  198. <Style.Setters>
  199. <Setter Property="Width" Value="20" />
  200. <Setter Property="Height" Value="22" />
  201. <Setter Property="VerticalAlignment" Value="Top" />
  202. <Setter Property="HorizontalAlignment" Value="Center" />
  203. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  204. </Style.Setters>
  205. </Style>
  206. <Style x:Key="imagetop_功能列表" TargetType="Image">
  207. <Style.Setters>
  208. <Setter Property="Width" Value="20" />
  209. <Setter Property="Height" Value="22" />
  210. <Setter Property="VerticalAlignment" Value="Top" />
  211. <Setter Property="HorizontalAlignment" Value="Center" />
  212. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  213. </Style.Setters>
  214. </Style>
  215. <Style x:Key="imagetop_产品制作" TargetType="Image">
  216. <Style.Setters>
  217. <Setter Property="Width" Value="20" />
  218. <Setter Property="Height" Value="22" />
  219. <Setter Property="VerticalAlignment" Value="Top" />
  220. <Setter Property="HorizontalAlignment" Value="Center" />
  221. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  222. </Style.Setters>
  223. </Style>
  224. <Style x:Key="imagetop_L" TargetType="Image">
  225. <Style.Setters>
  226. <Setter Property="Height" Value="80" />
  227. <Setter Property="VerticalAlignment" Value="Top" />
  228. <Setter Property="HorizontalAlignment" Value="Left" />
  229. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  230. </Style.Setters>
  231. </Style>
  232. <Style x:Key="imagetop_Title" TargetType="Image">
  233. <Style.Setters>
  234. <Setter Property="Width" Value="250" />
  235. <Setter Property="VerticalAlignment" Value="Top" />
  236. <Setter Property="HorizontalAlignment" Value="Left" />
  237. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/自动化产线上位机控制系统.png" />
  238. </Style.Setters>
  239. </Style>
  240. <Style x:Key="imagetop_矩形" TargetType="Image">
  241. <Style.Setters>
  242. <Setter Property="VerticalAlignment" Value="Top" />
  243. <Setter Property="HorizontalAlignment" Value="Left" />
  244. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  245. </Style.Setters>
  246. </Style>
  247. <Style x:Key="imagetop" TargetType="Image">
  248. <Style.Setters>
  249. <Setter Property="VerticalAlignment" Value="Top" />
  250. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  251. </Style.Setters>
  252. </Style>
  253. <Style x:Key="imagetop1" TargetType="Image">
  254. <Style.Setters>
  255. <Setter Property="VerticalAlignment" Value="Top" />
  256. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  257. </Style.Setters>
  258. </Style>
  259. <Style x:Key="image营销额" TargetType="Image">
  260. <Style.Setters>
  261. <Setter Property="VerticalAlignment" Value="Bottom" />
  262. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png" />
  263. </Style.Setters>
  264. </Style>
  265. <Style x:Key="imagetitletext" TargetType="Image">
  266. <Style.Setters>
  267. <Setter Property="Height" Value="20" />
  268. <Setter Property="VerticalAlignment" Value="Center" />
  269. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png" />
  270. </Style.Setters>
  271. </Style>
  272. <Style x:Key="image圆角矩形" TargetType="Image">
  273. <Style.Setters>
  274. <Setter Property="Height" Value="33" />
  275. <Setter Property="VerticalAlignment" Value="Center" />
  276. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png" />
  277. </Style.Setters>
  278. </Style>
  279. <Style x:Key="image黑菠萝科技" TargetType="Image">
  280. <Style.Setters>
  281. <Setter Property="HorizontalAlignment" Value="Center" />
  282. <Setter Property="Height" Value="24" />
  283. <Setter Property="Width" Value="70" />
  284. <Setter Property="VerticalAlignment" Value="Bottom" />
  285. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png" />
  286. </Style.Setters>
  287. </Style>
  288. <Style x:Key="MainBJ" TargetType="Image">
  289. <Style.Setters>
  290. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png" />
  291. </Style.Setters>
  292. </Style>
  293. <Style x:Key="TitleImage" TargetType="Image">
  294. <Style.Setters>
  295. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
  296. </Style.Setters>
  297. </Style>
  298. <Style x:Key="timeImage" TargetType="Image">
  299. <Style.Setters>
  300. <Setter Property="Width" Value="20" />
  301. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png" />
  302. </Style.Setters>
  303. </Style>
  304. <Style x:Key="image文字" TargetType="Image">
  305. <Style.Setters>
  306. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png" />
  307. </Style.Setters>
  308. </Style>
  309. <Style x:Key="image底部科技背景" TargetType="Image">
  310. <Style.Setters>
  311. <Setter Property="VerticalAlignment" Value="Bottom" />
  312. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png" />
  313. </Style.Setters>
  314. </Style>
  315. <Style x:Key="image个人信息" TargetType="Image">
  316. <Style.Setters>
  317. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png" />
  318. </Style.Setters>
  319. </Style>
  320. <Style x:Key="image维护" TargetType="Image">
  321. <Style.Setters>
  322. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  323. </Style.Setters>
  324. </Style>
  325. <Style x:Key="image标题其他" TargetType="Image">
  326. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png" />
  327. <Setter Property="Height" Value="12" />
  328. </Style>
  329. <Style x:Key="image告警" TargetType="Image">
  330. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png" />
  331. <Setter Property="Height" Value="24" />
  332. </Style>
  333. <Style x:Key="image有告警" TargetType="Image">
  334. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png" />
  335. <Setter Property="Height" Value="30" />
  336. </Style>
  337. <!--#endregion-->
  338. <!--#region Border-->
  339. <Style x:Key="border车" TargetType="Border">
  340. <Style.Setters>
  341. <Setter Property="Height" Value="80" />
  342. <Setter Property="Width" Value="80" />
  343. <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
  344. <Setter Property="RenderTransform">
  345. <Setter.Value>
  346. <TransformGroup>
  347. <ScaleTransform ScaleX="0.8" ScaleY="-0.6" />
  348. <SkewTransform AngleY="0" />
  349. <RotateTransform Angle="180" />
  350. <TranslateTransform X="1" Y="0.5" />
  351. </TransformGroup>
  352. </Setter.Value>
  353. </Setter>
  354. <Setter Property="Background">
  355. <Setter.Value>
  356. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/agv.png" />
  357. </Setter.Value>
  358. </Setter>
  359. </Style.Setters>
  360. </Style>
  361. <Style x:Key="border停车位" TargetType="Border">
  362. <Style.Setters>
  363. <Setter Property="Height" Value="80" />
  364. <Setter Property="Width" Value="80" />
  365. <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
  366. <Setter Property="RenderTransform">
  367. <Setter.Value>
  368. <TransformGroup>
  369. <ScaleTransform />
  370. <SkewTransform AngleY="20" />
  371. <RotateTransform />
  372. <TranslateTransform />
  373. </TransformGroup>
  374. </Setter.Value>
  375. </Setter>
  376. <Setter Property="Background">
  377. <Setter.Value>
  378. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/停车位.png" />
  379. </Setter.Value>
  380. </Setter>
  381. </Style.Setters>
  382. </Style>
  383. <Style x:Key="border充电桩" TargetType="Border">
  384. <Style.Setters>
  385. <Setter Property="Height" Value="60" />
  386. <Setter Property="Width" Value="60" />
  387. <Setter Property="Margin" Value="0,20,0,0" />
  388. <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
  389. <Setter Property="RenderTransform">
  390. <Setter.Value>
  391. <TransformGroup>
  392. <ScaleTransform />
  393. <SkewTransform AngleY="20" />
  394. <RotateTransform />
  395. <TranslateTransform />
  396. </TransformGroup>
  397. </Setter.Value>
  398. </Setter>
  399. <Setter Property="Background">
  400. <Setter.Value>
  401. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/充电桩.png" />
  402. </Setter.Value>
  403. </Setter>
  404. </Style.Setters>
  405. </Style>
  406. <Style x:Key="border炒锅" TargetType="Border">
  407. <Style.Setters>
  408. <Setter Property="Margin" Value="60,0,0,20" />
  409. <Setter Property="Height" Value="80" />
  410. <Setter Property="Width" Value="80" />
  411. <Setter Property="VerticalAlignment" Value="Bottom" />
  412. <Setter Property="Background">
  413. <Setter.Value>
  414. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  415. </Setter.Value>
  416. </Setter>
  417. </Style.Setters>
  418. </Style>
  419. <Style x:Key="border炒锅2" TargetType="Border">
  420. <Style.Setters>
  421. <Setter Property="Height" Value="100" />
  422. <Setter Property="Width" Value="100" />
  423. <Setter Property="VerticalAlignment" Value="Bottom" />
  424. <Setter Property="Background">
  425. <Setter.Value>
  426. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/炒锅2.png" />
  427. </Setter.Value>
  428. </Setter>
  429. </Style.Setters>
  430. </Style>
  431. <Style x:Key="border碗" TargetType="Border">
  432. <Style.Setters>
  433. <Setter Property="Height" Value="80" />
  434. <Setter Property="Width" Value="40" />
  435. <Setter Property="Margin" Value="0,-20,0,-20" />
  436. <Setter Property="VerticalAlignment" Value="Bottom" />
  437. <Setter Property="Background">
  438. <Setter.Value>
  439. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/汤碗.png" />
  440. </Setter.Value>
  441. </Setter>
  442. </Style.Setters>
  443. </Style>
  444. <Style x:Key="border菜" TargetType="Border">
  445. <Style.Setters>
  446. <Setter Property="Margin" Value="0,-17,0,0" />
  447. <Setter Property="Height" Value="30" />
  448. <Setter Property="Width" Value="35" />
  449. <Setter Property="VerticalAlignment" Value="Top" />
  450. <Setter Property="Background">
  451. <Setter.Value>
  452. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/蔬菜.png" />
  453. </Setter.Value>
  454. </Setter>
  455. </Style.Setters>
  456. </Style>
  457. <Style x:Key="border垂直墙" TargetType="Border">
  458. <Style.Setters>
  459. <Setter Property="Background">
  460. <Setter.Value>
  461. <ImageBrush
  462. ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png"
  463. Stretch="UniformToFill"
  464. TileMode="FlipY"
  465. Viewport="0, 0, 1, 0.03"
  466. ViewportUnits="RelativeToBoundingBox" />
  467. </Setter.Value>
  468. </Setter>
  469. </Style.Setters>
  470. </Style>
  471. <Style x:Key="border水平墙" TargetType="Border">
  472. <Style.Setters>
  473. <Setter Property="Background">
  474. <Setter.Value>
  475. <ImageBrush
  476. ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png"
  477. Stretch="UniformToFill"
  478. TileMode="FlipY"
  479. Viewport="0, 0, 0.02, 1"
  480. ViewportUnits="RelativeToBoundingBox" />
  481. </Setter.Value>
  482. </Setter>
  483. </Style.Setters>
  484. </Style>
  485. <Style x:Key="border垂直墙1" TargetType="Border">
  486. <Style.Setters>
  487. <Setter Property="Background">
  488. <Setter.Value>
  489. <ImageBrush
  490. ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png"
  491. Stretch="UniformToFill"
  492. TileMode="FlipY"
  493. Viewport="0, 0, 1, 0.1"
  494. ViewportUnits="RelativeToBoundingBox" />
  495. </Setter.Value>
  496. </Setter>
  497. </Style.Setters>
  498. </Style>
  499. <Style x:Key="border水平墙1" TargetType="Border">
  500. <Style.Setters>
  501. <Setter Property="Background">
  502. <Setter.Value>
  503. <ImageBrush
  504. ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png"
  505. Stretch="UniformToFill"
  506. TileMode="FlipY"
  507. Viewport="0, 0, 0.1, 1"
  508. ViewportUnits="RelativeToBoundingBox" />
  509. </Setter.Value>
  510. </Setter>
  511. </Style.Setters>
  512. </Style>
  513. <Style x:Key="FromBJ" TargetType="Border">
  514. <Style.Setters>
  515. <Setter Property="Background">
  516. <Setter.Value>
  517. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景.png" />
  518. </Setter.Value>
  519. </Setter>
  520. </Style.Setters>
  521. </Style>
  522. <Style x:Key="button_no" TargetType="Border">
  523. <Style.Setters>
  524. <Setter Property="Background">
  525. <Setter.Value>
  526. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
  527. </Setter.Value>
  528. </Setter>
  529. </Style.Setters>
  530. </Style>
  531. <Style x:Key="button_select" TargetType="Border">
  532. <Style.Setters>
  533. <Setter Property="Background">
  534. <Setter.Value>
  535. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
  536. </Setter.Value>
  537. </Setter>
  538. </Style.Setters>
  539. </Style>
  540. <Style x:Key="bordertopL" TargetType="Border">
  541. <Style.Setters>
  542. <Setter Property="Height" Value="80" />
  543. <Setter Property="Width" Value="300" />
  544. <Setter Property="VerticalAlignment" Value="Top" />
  545. <Setter Property="HorizontalAlignment" Value="Left" />
  546. <Setter Property="Background">
  547. <Setter.Value>
  548. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  549. </Setter.Value>
  550. </Setter>
  551. </Style.Setters>
  552. </Style>
  553. <Style x:Key="border阴影边框" TargetType="Border">
  554. <Style.Setters>
  555. <Setter Property="Height" Value="50" />
  556. <Setter Property="VerticalAlignment" Value="Top" />
  557. <Setter Property="Background">
  558. <Setter.Value>
  559. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  560. </Setter.Value>
  561. </Setter>
  562. </Style.Setters>
  563. </Style>
  564. <Style x:Key="border阴影边框扩展" TargetType="Border">
  565. <Style.Setters>
  566. <Setter Property="Background">
  567. <Setter.Value>
  568. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  569. </Setter.Value>
  570. </Setter>
  571. </Style.Setters>
  572. </Style>
  573. <Style x:Key="border边角" TargetType="Border">
  574. <Style.Setters>
  575. <Setter Property="Background">
  576. <Setter.Value>
  577. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
  578. </Setter.Value>
  579. </Setter>
  580. </Style.Setters>
  581. </Style>
  582. <Style x:Key="bordertop矩形" TargetType="Border">
  583. <Style.Setters>
  584. <Setter Property="Background">
  585. <Setter.Value>
  586. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  587. </Setter.Value>
  588. </Setter>
  589. </Style.Setters>
  590. </Style>
  591. <Style x:Key="bordertopTitle" TargetType="Border">
  592. <Style.Setters>
  593. <Setter Property="Height" Value="100" />
  594. <Setter Property="Background">
  595. <Setter.Value>
  596. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  597. </Setter.Value>
  598. </Setter>
  599. </Style.Setters>
  600. </Style>
  601. <Style x:Key="borderFromTitle" TargetType="Border">
  602. <Style.Setters>
  603. <Setter Property="Background">
  604. <Setter.Value>
  605. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
  606. </Setter.Value>
  607. </Setter>
  608. </Style.Setters>
  609. </Style>
  610. <Style x:Key="border窗体背景1" TargetType="Border">
  611. <Style.Setters>
  612. <Setter Property="Background">
  613. <Setter.Value>
  614. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
  615. </Setter.Value>
  616. </Setter>
  617. </Style.Setters>
  618. </Style>
  619. <Style x:Key="border窗体背景2" TargetType="Border">
  620. <Style.Setters>
  621. <Setter Property="Background">
  622. <Setter.Value>
  623. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
  624. </Setter.Value>
  625. </Setter>
  626. </Style.Setters>
  627. </Style>
  628. <Style x:Key="borderPop_bg" TargetType="Border">
  629. <Style.Setters>
  630. <Setter Property="Background">
  631. <Setter.Value>
  632. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  633. </Setter.Value>
  634. </Setter>
  635. </Style.Setters>
  636. </Style>
  637. <Style x:Key="border背景two" TargetType="Border">
  638. <Style.Setters>
  639. <Setter Property="Background">
  640. <Setter.Value>
  641. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
  642. </Setter.Value>
  643. </Setter>
  644. </Style.Setters>
  645. </Style>
  646. <Style x:Key="border窗体背景3" TargetType="Border">
  647. <Style.Setters>
  648. <Setter Property="Background">
  649. <Setter.Value>
  650. <ImageBrush
  651. ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
  652. Opacity="1"
  653. Stretch="Fill"
  654. TileMode="FlipX"
  655. Viewbox="0,0,1,1"
  656. ViewboxUnits="RelativeToBoundingBox" />
  657. </Setter.Value>
  658. </Setter>
  659. </Style.Setters>
  660. </Style>
  661. <Style x:Key="border窗体背景4" TargetType="Border">
  662. <Style.Setters>
  663. <Setter Property="Background">
  664. <Setter.Value>
  665. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
  666. </Setter.Value>
  667. </Setter>
  668. </Style.Setters>
  669. </Style>
  670. <Style x:Key="border窗体背景5" TargetType="Border">
  671. <Style.Setters>
  672. <Setter Property="Background">
  673. <Setter.Value>
  674. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
  675. </Setter.Value>
  676. </Setter>
  677. </Style.Setters>
  678. </Style>
  679. <Style x:Key="border窗体背景6" TargetType="Border">
  680. <Style.Setters>
  681. <Setter Property="Background">
  682. <Setter.Value>
  683. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
  684. </Setter.Value>
  685. </Setter>
  686. </Style.Setters>
  687. </Style>
  688. <Style x:Key="border窗体背景7" TargetType="Border">
  689. <Style.Setters>
  690. <Setter Property="Background">
  691. <Setter.Value>
  692. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
  693. </Setter.Value>
  694. </Setter>
  695. </Style.Setters>
  696. </Style>
  697. <Style x:Key="border圆角矩形" TargetType="Border">
  698. <Style.Setters>
  699. <Setter Property="BorderThickness" Value="3" />
  700. <Setter Property="Background">
  701. <Setter.Value>
  702. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
  703. </Setter.Value>
  704. </Setter>
  705. </Style.Setters>
  706. </Style>
  707. <Style x:Key="border不规则矩形" TargetType="Border">
  708. <Style.Setters>
  709. <Setter Property="BorderThickness" Value="0.5" />
  710. <Setter Property="Background">
  711. <Setter.Value>
  712. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
  713. </Setter.Value>
  714. </Setter>
  715. </Style.Setters>
  716. </Style>
  717. <Style x:Key="border矩形" TargetType="Border">
  718. <Style.Setters>
  719. <Setter Property="Background">
  720. <Setter.Value>
  721. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  722. </Setter.Value>
  723. </Setter>
  724. </Style.Setters>
  725. </Style>
  726. <Style x:Key="border顶部背景" TargetType="Border">
  727. <Style.Setters>
  728. <Setter Property="Background">
  729. <Setter.Value>
  730. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
  731. </Setter.Value>
  732. </Setter>
  733. <Setter Property="BorderBrush">
  734. <Setter.Value>
  735. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  736. </Setter.Value>
  737. </Setter>
  738. <Setter Property="BorderThickness" Value="0,0,0,1" />
  739. </Style.Setters>
  740. </Style>
  741. <Style x:Key="border标题背景" TargetType="Border">
  742. <Style.Setters>
  743. <Setter Property="Background">
  744. <Setter.Value>
  745. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png" />
  746. </Setter.Value>
  747. </Setter>
  748. </Style.Setters>
  749. </Style>
  750. <Style x:Key="border主窗体背景" TargetType="Border">
  751. <Style.Setters>
  752. <Setter Property="Background">
  753. <Setter.Value>
  754. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png" />
  755. </Setter.Value>
  756. </Setter>
  757. </Style.Setters>
  758. </Style>
  759. <Style x:Key="boreder奶茶背景" TargetType="Border">
  760. <Style.Setters>
  761. <Setter Property="Background">
  762. <Setter.Value>
  763. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/beijing.png" />
  764. </Setter.Value>
  765. </Setter>
  766. </Style.Setters>
  767. </Style>
  768. <Style x:Key="border界面背景" TargetType="Border">
  769. <Style.Setters>
  770. <Setter Property="Background">
  771. <Setter.Value>
  772. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景2.png" />
  773. </Setter.Value>
  774. </Setter>
  775. </Style.Setters>
  776. </Style>
  777. <Style x:Key="border顶部标题背景" TargetType="Border">
  778. <Style.Setters>
  779. <Setter Property="Background">
  780. <Setter.Value>
  781. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  782. </Setter.Value>
  783. </Setter>
  784. </Style.Setters>
  785. </Style>
  786. <Style x:Key="border竖线" TargetType="Border">
  787. <Style.Setters>
  788. <Setter Property="Width" Value="1" />
  789. <Setter Property="Height" Value="40" />
  790. <Setter Property="BorderThickness" Value="0" />
  791. <Setter Property="Margin" Value="5" />
  792. <Setter Property="Background">
  793. <Setter.Value>
  794. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
  795. </Setter.Value>
  796. </Setter>
  797. </Style.Setters>
  798. </Style>
  799. <Style x:Key="border内部" TargetType="Border">
  800. <Style.Setters>
  801. <Setter Property="Width" Value="320" />
  802. <Setter Property="HorizontalAlignment" Value="Stretch" />
  803. <Setter Property="VerticalAlignment" Value="Stretch" />
  804. <Setter Property="BorderThickness" Value="0" />
  805. <Setter Property="Margin" Value="5" />
  806. <Setter Property="Background">
  807. <Setter.Value>
  808. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
  809. </Setter.Value>
  810. </Setter>
  811. </Style.Setters>
  812. </Style>
  813. <Style x:Key="border矩形2" TargetType="Border">
  814. <Style.Setters>
  815. <Setter Property="Margin" Value="0,0,10,0" />
  816. <Setter Property="VerticalAlignment" Value="Top" />
  817. <Setter Property="HorizontalAlignment" Value="Left" />
  818. <Setter Property="Width" Value="92" />
  819. <Setter Property="Height" Value="46" />
  820. <Setter Property="BorderThickness" Value="0" />
  821. <Setter Property="Background">
  822. <Setter.Value>
  823. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png" />
  824. </Setter.Value>
  825. </Setter>
  826. </Style.Setters>
  827. </Style>
  828. <Style x:Key="border矢量智能对象" TargetType="Border">
  829. <Style.Setters>
  830. <Setter Property="Width" Value="1" />
  831. <Setter Property="Height" Value="40" />
  832. <Setter Property="BorderThickness" Value="0" />
  833. <Setter Property="Margin" Value="5" />
  834. <Setter Property="Background">
  835. <Setter.Value>
  836. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png" />
  837. </Setter.Value>
  838. </Setter>
  839. </Style.Setters>
  840. </Style>
  841. <Style x:Key="border边框" TargetType="Border">
  842. <Style.Setters>
  843. <Setter Property="Background">
  844. <Setter.Value>
  845. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
  846. </Setter.Value>
  847. </Setter>
  848. </Style.Setters>
  849. </Style>
  850. <Style x:Key="border边框2" TargetType="Border">
  851. <Style.Setters>
  852. <Setter Property="Background">
  853. <Setter.Value>
  854. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
  855. </Setter.Value>
  856. </Setter>
  857. </Style.Setters>
  858. </Style>
  859. <Style x:Key="border右下" TargetType="Border">
  860. <Style.Setters>
  861. <Setter Property="HorizontalAlignment" Value="Right" />
  862. <Setter Property="VerticalAlignment" Value="Bottom" />
  863. <Setter Property="Height" Value="23" />
  864. <Setter Property="Width" Value="22" />
  865. <Setter Property="Background">
  866. <Setter.Value>
  867. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
  868. </Setter.Value>
  869. </Setter>
  870. </Style.Setters>
  871. </Style>
  872. <Style x:Key="border左下" TargetType="Border">
  873. <Style.Setters>
  874. <Setter Property="HorizontalAlignment" Value="Left" />
  875. <Setter Property="VerticalAlignment" Value="Bottom" />
  876. <Setter Property="Height" Value="22" />
  877. <Setter Property="Width" Value="23" />
  878. <Setter Property="Background">
  879. <Setter.Value>
  880. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
  881. </Setter.Value>
  882. </Setter>
  883. </Style.Setters>
  884. </Style>
  885. <Style x:Key="border左上" TargetType="Border">
  886. <Style.Setters>
  887. <Setter Property="HorizontalAlignment" Value="Left" />
  888. <Setter Property="VerticalAlignment" Value="Top" />
  889. <Setter Property="Height" Value="22" />
  890. <Setter Property="Width" Value="23" />
  891. <Setter Property="Background">
  892. <Setter.Value>
  893. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
  894. </Setter.Value>
  895. </Setter>
  896. </Style.Setters>
  897. </Style>
  898. <Style x:Key="border右上" TargetType="Border">
  899. <Style.Setters>
  900. <Setter Property="HorizontalAlignment" Value="Right" />
  901. <Setter Property="VerticalAlignment" Value="Top" />
  902. <Setter Property="Height" Value="23" />
  903. <Setter Property="Width" Value="22" />
  904. <Setter Property="Background">
  905. <Setter.Value>
  906. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
  907. </Setter.Value>
  908. </Setter>
  909. </Style.Setters>
  910. </Style>
  911. <!--#endregion-->
  912. <!--#region Button-->
  913. <Style x:Key="TitleBarStyle" TargetType="Button">
  914. <Setter Property="Foreground" Value="White" />
  915. <Setter Property="FontSize" Value="20" />
  916. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
  917. <Setter Property="Template">
  918. <Setter.Value>
  919. <ControlTemplate TargetType="Button">
  920. <Border Name="TitleBarBr" Background="Transparent">
  921. <ContentPresenter
  922. Margin="{TemplateBinding Margin}"
  923. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  924. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  925. </Border>
  926. <ControlTemplate.Triggers>
  927. <Trigger Property="IsMouseOver" Value="true">
  928. <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
  929. </Trigger>
  930. </ControlTemplate.Triggers>
  931. </ControlTemplate>
  932. </Setter.Value>
  933. </Setter>
  934. </Style>
  935. <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
  936. <Style.Setters>
  937. <Setter Property="VerticalContentAlignment" Value="Center" />
  938. <Setter Property="HorizontalContentAlignment" Value="Center" />
  939. <Setter Property="Cursor" Value="Hand" />
  940. <Setter Property="Width" Value="65" />
  941. <Setter Property="Height" Value="24" />
  942. <Setter Property="HorizontalAlignment" Value="Right" />
  943. <Setter Property="Template">
  944. <Setter.Value>
  945. <ControlTemplate TargetType="Button">
  946. <!--<ControlTemplate.Resources>
  947. <Storyboard x:Key="OnMouseEnter1">
  948. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  949. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  950. </ColorAnimationUsingKeyFrames>
  951. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  952. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  953. </ColorAnimationUsingKeyFrames>
  954. </Storyboard>
  955. </ControlTemplate.Resources>-->
  956. <Border x:Name="BD" CornerRadius="2">
  957. <Border.Background>
  958. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
  959. </Border.Background>
  960. <StackPanel
  961. Margin="5"
  962. HorizontalAlignment="Center"
  963. Orientation="Horizontal">
  964. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  965. <TextBlock
  966. x:Name="textBlock"
  967. Margin="5,0,0,0"
  968. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  969. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  970. FontSize="14"
  971. Foreground="#A5FFFFFF"
  972. Text="{TemplateBinding Content}" />
  973. </StackPanel>
  974. <VisualStateManager.VisualStateGroups>
  975. <VisualStateGroup x:Name="CommonStates">
  976. <VisualState x:Name="Normal" />
  977. <VisualState x:Name="MouseOver">
  978. <Storyboard>
  979. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  980. <EasingColorKeyFrame KeyTime="0" Value="White" />
  981. </ColorAnimationUsingKeyFrames>
  982. <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  983. <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
  984. </ColorAnimationUsingKeyFrames>
  985. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
  986. <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
  987. </DoubleAnimationUsingKeyFrames>
  988. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  989. <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
  990. </ColorAnimationUsingKeyFrames>-->
  991. </Storyboard>
  992. </VisualState>
  993. <VisualState x:Name="Pressed" />
  994. <VisualState x:Name="Disabled" />
  995. </VisualStateGroup>
  996. </VisualStateManager.VisualStateGroups>
  997. </Border>
  998. </ControlTemplate>
  999. </Setter.Value>
  1000. </Setter>
  1001. </Style.Setters>
  1002. </Style>
  1003. <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
  1004. <Style.Setters>
  1005. <Setter Property="VerticalContentAlignment" Value="Center" />
  1006. <Setter Property="HorizontalContentAlignment" Value="Center" />
  1007. <Setter Property="Cursor" Value="Hand" />
  1008. <Setter Property="Width" Value="65" />
  1009. <Setter Property="Height" Value="24" />
  1010. <Setter Property="HorizontalAlignment" Value="Right" />
  1011. <Setter Property="Template">
  1012. <Setter.Value>
  1013. <ControlTemplate TargetType="Button">
  1014. <Border x:Name="BD" CornerRadius="2">
  1015. <Border.Background>
  1016. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
  1017. </Border.Background>
  1018. <StackPanel
  1019. Margin="5"
  1020. HorizontalAlignment="Center"
  1021. Orientation="Horizontal">
  1022. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  1023. <TextBlock
  1024. x:Name="textBlock"
  1025. Margin="5,0,0,0"
  1026. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1027. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1028. Foreground="#A5FFFFFF"
  1029. Text="{TemplateBinding Content}" />
  1030. </StackPanel>
  1031. <VisualStateManager.VisualStateGroups>
  1032. <VisualStateGroup x:Name="CommonStates">
  1033. <VisualState x:Name="Normal" />
  1034. <VisualState x:Name="MouseOver">
  1035. <Storyboard>
  1036. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  1037. <EasingColorKeyFrame KeyTime="0" Value="White" />
  1038. </ColorAnimationUsingKeyFrames>
  1039. </Storyboard>
  1040. </VisualState>
  1041. <VisualState x:Name="Pressed" />
  1042. <VisualState x:Name="Disabled" />
  1043. </VisualStateGroup>
  1044. </VisualStateManager.VisualStateGroups>
  1045. </Border>
  1046. </ControlTemplate>
  1047. </Setter.Value>
  1048. </Setter>
  1049. </Style.Setters>
  1050. </Style>
  1051. <Style x:Key="CommonBtn_1" TargetType="Button">
  1052. <Style.Setters>
  1053. <Setter Property="VerticalContentAlignment" Value="Center" />
  1054. <Setter Property="Cursor" Value="Hand" />
  1055. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1056. <Setter Property="Width" Value="65" />
  1057. <Setter Property="Height" Value="24" />
  1058. <Setter Property="Template">
  1059. <Setter.Value>
  1060. <ControlTemplate TargetType="Button">
  1061. <ControlTemplate.Resources>
  1062. <Storyboard x:Key="OnMouseEnter1">
  1063. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
  1064. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
  1065. </ColorAnimationUsingKeyFrames>
  1066. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  1067. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
  1068. </ColorAnimationUsingKeyFrames>
  1069. </Storyboard>
  1070. </ControlTemplate.Resources>
  1071. <Border
  1072. x:Name="BD"
  1073. Background="Transparent"
  1074. BorderBrush="#05408a"
  1075. BorderThickness="1"
  1076. CornerRadius="12">
  1077. <TextBlock
  1078. x:Name="textBlock"
  1079. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1080. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1081. FontSize="12"
  1082. Foreground="{DynamicResource foreground}"
  1083. Text="{TemplateBinding Content}" />
  1084. </Border>
  1085. <ControlTemplate.Triggers>
  1086. <Trigger Property="IsMouseOver" Value="true">
  1087. <Setter TargetName="BD" Property="Background" Value="#009dff" />
  1088. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
  1089. </Trigger>
  1090. <Trigger Property="IsEnabled" Value="False">
  1091. <Setter TargetName="BD" Property="Background" Value="#ff55" />
  1092. </Trigger>
  1093. </ControlTemplate.Triggers>
  1094. </ControlTemplate>
  1095. </Setter.Value>
  1096. </Setter>
  1097. </Style.Setters>
  1098. </Style>
  1099. <Style TargetType="Button">
  1100. <Style.Setters>
  1101. <Setter Property="VerticalContentAlignment" Value="Center" />
  1102. <Setter Property="Cursor" Value="Hand" />
  1103. <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1104. <Setter Property="Height" Value="25" />
  1105. <Setter Property="Template">
  1106. <Setter.Value>
  1107. <ControlTemplate TargetType="Button">
  1108. <Border x:Name="BD" Cursor="Hand">
  1109. <StackPanel
  1110. HorizontalAlignment="Center"
  1111. Cursor="Hand"
  1112. Orientation="Horizontal">
  1113. <!--<Border Width="16" Margin="5">
  1114. <Border.Background>
  1115. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  1116. </Border.Background>
  1117. </Border>-->
  1118. <TextBlock
  1119. x:Name="textBlock"
  1120. Margin="10,0,10,0"
  1121. VerticalAlignment="Center"
  1122. FontSize="14"
  1123. Foreground="{DynamicResource ButtonSelectForeground}"
  1124. Text="{TemplateBinding Content}" />
  1125. <!-- Text="{TemplateBinding Content}" -->
  1126. </StackPanel>
  1127. </Border>
  1128. <ControlTemplate.Triggers>
  1129. <Trigger Property="IsMouseOver" Value="true">
  1130. <Setter TargetName="BD" Property="Background">
  1131. <Setter.Value>
  1132. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  1133. </Setter.Value>
  1134. </Setter>
  1135. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1136. </Trigger>
  1137. <Trigger Property="IsMouseOver" Value="False">
  1138. <Setter TargetName="BD" Property="Background">
  1139. <Setter.Value>
  1140. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  1141. </Setter.Value>
  1142. </Setter>
  1143. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1144. </Trigger>
  1145. <Trigger Property="IsEnabled" Value="False">
  1146. <Setter TargetName="BD" Property="Background">
  1147. <Setter.Value>
  1148. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1149. </Setter.Value>
  1150. </Setter>
  1151. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
  1152. </Trigger>
  1153. </ControlTemplate.Triggers>
  1154. </ControlTemplate>
  1155. </Setter.Value>
  1156. </Setter>
  1157. </Style.Setters>
  1158. </Style>
  1159. <Style x:Key="CommonBtn_返回" TargetType="Button">
  1160. <Style.Setters>
  1161. <Setter Property="VerticalContentAlignment" Value="Center" />
  1162. <Setter Property="Cursor" Value="Hand" />
  1163. <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1164. <Setter Property="Width" Value="68" />
  1165. <Setter Property="Height" Value="25" />
  1166. <Setter Property="Template">
  1167. <Setter.Value>
  1168. <ControlTemplate TargetType="Button">
  1169. <Border x:Name="BD" Cursor="Hand">
  1170. <StackPanel
  1171. Margin="5,0,10,0"
  1172. HorizontalAlignment="Right"
  1173. Orientation="Horizontal">
  1174. <Border Width="16" Margin="5">
  1175. <Border.Background>
  1176. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  1177. </Border.Background>
  1178. </Border>
  1179. <TextBlock
  1180. x:Name="textBlock"
  1181. VerticalAlignment="Center"
  1182. FontSize="14"
  1183. Foreground="{DynamicResource ButtonSelectForeground}"
  1184. Text="{TemplateBinding Content}" />
  1185. <!-- Text="{TemplateBinding Content}" -->
  1186. </StackPanel>
  1187. </Border>
  1188. <ControlTemplate.Triggers>
  1189. <Trigger Property="IsMouseOver" Value="true">
  1190. <Setter TargetName="BD" Property="Background">
  1191. <Setter.Value>
  1192. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  1193. </Setter.Value>
  1194. </Setter>
  1195. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1196. </Trigger>
  1197. <Trigger Property="IsMouseOver" Value="False">
  1198. <Setter TargetName="BD" Property="Background">
  1199. <Setter.Value>
  1200. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  1201. </Setter.Value>
  1202. </Setter>
  1203. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1204. </Trigger>
  1205. <Trigger Property="IsEnabled" Value="False">
  1206. <Setter TargetName="BD" Property="Background">
  1207. <Setter.Value>
  1208. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1209. </Setter.Value>
  1210. </Setter>
  1211. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
  1212. </Trigger>
  1213. </ControlTemplate.Triggers>
  1214. </ControlTemplate>
  1215. </Setter.Value>
  1216. </Setter>
  1217. </Style.Setters>
  1218. </Style>
  1219. <Style TargetType="{x:Type Separator}">
  1220. <Setter Property="Height" Value="1" />
  1221. <Setter Property="Margin" Value="0,4,0,4" />
  1222. <Setter Property="Template">
  1223. <Setter.Value>
  1224. <ControlTemplate TargetType="{x:Type Separator}">
  1225. <Border>
  1226. <Border.Background>
  1227. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  1228. </Border.Background>
  1229. </Border>
  1230. </ControlTemplate>
  1231. </Setter.Value>
  1232. </Setter>
  1233. </Style>
  1234. <Style x:Key="CommonBtn_功能节点" TargetType="Button">
  1235. <Style.Setters>
  1236. <Setter Property="VerticalContentAlignment" Value="Center" />
  1237. <Setter Property="Cursor" Value="Hand" />
  1238. <Setter Property="Margin" Value="10,5,10,5" />
  1239. <Setter Property="Template">
  1240. <Setter.Value>
  1241. <ControlTemplate TargetType="Button">
  1242. <StackPanel x:Name="BD" Orientation="Horizontal">
  1243. <Image
  1244. Width="24"
  1245. Margin="5"
  1246. Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
  1247. <TextBlock
  1248. x:Name="textBlock"
  1249. Margin="10,0,0,0"
  1250. HorizontalAlignment="Left"
  1251. VerticalAlignment="Center"
  1252. FontSize="12"
  1253. Foreground="#00c1c3"
  1254. Text="{TemplateBinding Content}" />
  1255. <TextBlock
  1256. x:Name="tex2tBlock"
  1257. VerticalAlignment="Center"
  1258. FontSize="14"
  1259. Foreground="#4fade8"
  1260. Text="{TemplateBinding Content}"
  1261. Visibility="Collapsed" />
  1262. </StackPanel>
  1263. <ControlTemplate.Triggers>
  1264. <Trigger Property="IsMouseOver" Value="true">
  1265. <Setter TargetName="BD" Property="Background">
  1266. <Setter.Value>
  1267. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1268. </Setter.Value>
  1269. </Setter>
  1270. </Trigger>
  1271. <Trigger Property="IsMouseOver" Value="False">
  1272. <Setter TargetName="BD" Property="Background">
  1273. <Setter.Value>
  1274. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1275. </Setter.Value>
  1276. </Setter>
  1277. </Trigger>
  1278. </ControlTemplate.Triggers>
  1279. </ControlTemplate>
  1280. </Setter.Value>
  1281. </Setter>
  1282. </Style.Setters>
  1283. </Style>
  1284. <Style x:Key="CommonBtn_产品制作" TargetType="Button">
  1285. <Style.Setters>
  1286. <Setter Property="VerticalContentAlignment" Value="Center" />
  1287. <Setter Property="Cursor" Value="Hand" />
  1288. <Setter Property="Template">
  1289. <Setter.Value>
  1290. <ControlTemplate TargetType="Button">
  1291. <StackPanel x:Name="BD" Margin="5">
  1292. <Image
  1293. Width="24"
  1294. Margin="5,10,5,0"
  1295. Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  1296. <TextBlock
  1297. x:Name="textBlock"
  1298. VerticalAlignment="Center"
  1299. FontSize="14"
  1300. Foreground="#4fade8"
  1301. Text="{TemplateBinding Content}"
  1302. Visibility="Collapsed" />
  1303. <Separator Margin="0,10,0,0" />
  1304. </StackPanel>
  1305. <ControlTemplate.Triggers>
  1306. <Trigger Property="IsMouseOver" Value="true">
  1307. <Setter TargetName="BD" Property="Background">
  1308. <Setter.Value>
  1309. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1310. </Setter.Value>
  1311. </Setter>
  1312. </Trigger>
  1313. <Trigger Property="IsMouseOver" Value="False">
  1314. <Setter TargetName="BD" Property="Background">
  1315. <Setter.Value>
  1316. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1317. </Setter.Value>
  1318. </Setter>
  1319. </Trigger>
  1320. </ControlTemplate.Triggers>
  1321. </ControlTemplate>
  1322. </Setter.Value>
  1323. </Setter>
  1324. </Style.Setters>
  1325. </Style>
  1326. <Style x:Key="CommonBtn_功能列表" TargetType="Button">
  1327. <Style.Setters>
  1328. <Setter Property="VerticalContentAlignment" Value="Center" />
  1329. <Setter Property="Cursor" Value="Hand" />
  1330. <Setter Property="Template">
  1331. <Setter.Value>
  1332. <ControlTemplate TargetType="Button">
  1333. <StackPanel x:Name="BD" Margin="5">
  1334. <Image
  1335. Width="24"
  1336. Margin="5,10,5,0"
  1337. Source="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  1338. <TextBlock
  1339. x:Name="textBlock"
  1340. VerticalAlignment="Center"
  1341. FontSize="14"
  1342. Foreground="#4fade8"
  1343. Text="{TemplateBinding Content}"
  1344. Visibility="Collapsed" />
  1345. <Separator Margin="0,10,0,0" />
  1346. </StackPanel>
  1347. <ControlTemplate.Triggers>
  1348. <Trigger Property="IsMouseOver" Value="true">
  1349. <Setter TargetName="BD" Property="Background">
  1350. <Setter.Value>
  1351. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1352. </Setter.Value>
  1353. </Setter>
  1354. </Trigger>
  1355. <Trigger Property="IsMouseOver" Value="False">
  1356. <Setter TargetName="BD" Property="Background">
  1357. <Setter.Value>
  1358. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1359. </Setter.Value>
  1360. </Setter>
  1361. </Trigger>
  1362. </ControlTemplate.Triggers>
  1363. </ControlTemplate>
  1364. </Setter.Value>
  1365. </Setter>
  1366. </Style.Setters>
  1367. </Style>
  1368. <Style x:Key="CommonBtn_维护" TargetType="Button">
  1369. <Style.Setters>
  1370. <Setter Property="VerticalContentAlignment" Value="Center" />
  1371. <Setter Property="Cursor" Value="Hand" />
  1372. <Setter Property="Template">
  1373. <Setter.Value>
  1374. <ControlTemplate TargetType="Button">
  1375. <StackPanel x:Name="BD" Margin="5">
  1376. <Image
  1377. Width="24"
  1378. Margin="5,10,5,0"
  1379. Source="/BPASmartClient.CustomResource;component/Image/维护.png" />
  1380. <TextBlock
  1381. x:Name="textBlock"
  1382. VerticalAlignment="Center"
  1383. FontSize="14"
  1384. Foreground="#4fade8"
  1385. Text="{TemplateBinding Content}"
  1386. Visibility="Collapsed" />
  1387. <Separator Margin="0,10,0,0" />
  1388. </StackPanel>
  1389. <ControlTemplate.Triggers>
  1390. <Trigger Property="IsMouseOver" Value="true">
  1391. <Setter TargetName="BD" Property="Background">
  1392. <Setter.Value>
  1393. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1394. </Setter.Value>
  1395. </Setter>
  1396. </Trigger>
  1397. <Trigger Property="IsMouseOver" Value="False">
  1398. <Setter TargetName="BD" Property="Background">
  1399. <Setter.Value>
  1400. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1401. </Setter.Value>
  1402. </Setter>
  1403. </Trigger>
  1404. </ControlTemplate.Triggers>
  1405. </ControlTemplate>
  1406. </Setter.Value>
  1407. </Setter>
  1408. </Style.Setters>
  1409. </Style>
  1410. <Style x:Key="Comm8" TargetType="Button">
  1411. <Style.Setters>
  1412. <Setter Property="VerticalContentAlignment" Value="Center" />
  1413. <Setter Property="Cursor" Value="Hand" />
  1414. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1415. <Setter Property="Width" Value="69" />
  1416. <Setter Property="Height" Value="25" />
  1417. <Setter Property="Template">
  1418. <Setter.Value>
  1419. <ControlTemplate TargetType="Button">
  1420. <!--<ControlTemplate.Resources>
  1421. <Storyboard x:Key="OnMouseEnter1">
  1422. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  1423. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  1424. </ColorAnimationUsingKeyFrames>
  1425. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  1426. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  1427. </ColorAnimationUsingKeyFrames>
  1428. </Storyboard>
  1429. </ControlTemplate.Resources>-->
  1430. <Border x:Name="BD" Cursor="Hand">
  1431. <TextBlock
  1432. x:Name="textBlock"
  1433. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1434. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1435. FontSize="12"
  1436. Foreground="{DynamicResource foreground}"
  1437. Text="{TemplateBinding Content}" />
  1438. </Border>
  1439. <ControlTemplate.Triggers>
  1440. <Trigger Property="IsMouseOver" Value="true">
  1441. <Setter TargetName="BD" Property="Background">
  1442. <Setter.Value>
  1443. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1444. </Setter.Value>
  1445. </Setter>
  1446. <Setter TargetName="textBlock" Property="Foreground" Value="White" />
  1447. </Trigger>
  1448. <Trigger Property="IsMouseOver" Value="False">
  1449. <Setter TargetName="BD" Property="Background">
  1450. <Setter.Value>
  1451. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  1452. </Setter.Value>
  1453. </Setter>
  1454. <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
  1455. </Trigger>
  1456. <Trigger Property="IsEnabled" Value="False">
  1457. <Setter TargetName="BD" Property="Background">
  1458. <Setter.Value>
  1459. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1460. </Setter.Value>
  1461. </Setter>
  1462. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  1463. </Trigger>
  1464. </ControlTemplate.Triggers>
  1465. </ControlTemplate>
  1466. </Setter.Value>
  1467. </Setter>
  1468. </Style.Setters>
  1469. </Style>
  1470. <!--#endregion-->
  1471. <!--#region TextBox-->
  1472. <Style
  1473. x:Key="TextBoxStyle人员"
  1474. BasedOn="{x:Null}"
  1475. TargetType="{x:Type TextBox}">
  1476. <Setter Property="Foreground" Value="#A4EBF7" />
  1477. <Setter Property="Background">
  1478. <Setter.Value>
  1479. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1480. </Setter.Value>
  1481. </Setter>
  1482. <Setter Property="FontSize" Value="14" />
  1483. <Setter Property="TextWrapping" Value="NoWrap" />
  1484. <Setter Property="BorderBrush" Value="Transparent" />
  1485. <Setter Property="BorderThickness" Value="1" />
  1486. <Setter Property="Padding" Value="1" />
  1487. <Setter Property="AllowDrop" Value="true" />
  1488. <Setter Property="HorizontalAlignment" Value="Left" />
  1489. <Setter Property="VerticalAlignment" Value="Center" />
  1490. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1491. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1492. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1493. <Setter Property="Height" Value="35" />
  1494. <Setter Property="Width" Value="auto" />
  1495. <Setter Property="MinWidth" Value="200" />
  1496. <Setter Property="Template">
  1497. <Setter.Value>
  1498. <ControlTemplate TargetType="{x:Type TextBox}">
  1499. <Themes:ListBoxChrome
  1500. x:Name="Bd"
  1501. Background="{TemplateBinding Background}"
  1502. BorderBrush="{TemplateBinding BorderBrush}"
  1503. BorderThickness="{TemplateBinding BorderThickness}"
  1504. RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
  1505. RenderMouseOver="{TemplateBinding IsMouseOver}"
  1506. SnapsToDevicePixels="true">
  1507. <Grid>
  1508. <Grid.ColumnDefinitions>
  1509. <ColumnDefinition Width="auto" />
  1510. <ColumnDefinition />
  1511. </Grid.ColumnDefinitions>
  1512. <Image
  1513. Width="20"
  1514. Height="Auto"
  1515. Margin="20,0,0,0"
  1516. HorizontalAlignment="Right"
  1517. Cursor="Hand"
  1518. Source="Image/搜索按钮.png"
  1519. Tag="Search" />
  1520. <ScrollViewer
  1521. x:Name="PART_ContentHost"
  1522. VerticalAlignment="Center"
  1523. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1524. <!--<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"/>-->
  1525. </Grid>
  1526. </Themes:ListBoxChrome>
  1527. <ControlTemplate.Triggers>
  1528. <Trigger Property="IsEnabled" Value="false">
  1529. <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  1530. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  1531. </Trigger>
  1532. </ControlTemplate.Triggers>
  1533. </ControlTemplate>
  1534. </Setter.Value>
  1535. </Setter>
  1536. <Style.Triggers>
  1537. <MultiTrigger>
  1538. <MultiTrigger.Conditions>
  1539. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1540. <Condition Property="IsSelectionActive" Value="false" />
  1541. </MultiTrigger.Conditions>
  1542. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1543. </MultiTrigger>
  1544. </Style.Triggers>
  1545. </Style>
  1546. <Style
  1547. x:Key="TextBoxStyle搜索框"
  1548. BasedOn="{x:Null}"
  1549. TargetType="{x:Type TextBox}">
  1550. <Setter Property="Foreground" Value="#A4EBF7" />
  1551. <Setter Property="FontSize" Value="14" />
  1552. <Setter Property="TextWrapping" Value="NoWrap" />
  1553. <Setter Property="BorderBrush" Value="Transparent" />
  1554. <Setter Property="BorderThickness" Value="1" />
  1555. <Setter Property="Margin" Value="10,0,0,0" />
  1556. <Setter Property="AllowDrop" Value="true" />
  1557. <Setter Property="CaretBrush" Value="Aqua" />
  1558. <Setter Property="Padding" Value="1" />
  1559. <Setter Property="HorizontalAlignment" Value="Left" />
  1560. <Setter Property="VerticalAlignment" Value="Center" />
  1561. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1562. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1563. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1564. <Setter Property="Height" Value="40" />
  1565. <Setter Property="Width" Value="135" />
  1566. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1567. <Setter Property="Template">
  1568. <Setter.Value>
  1569. <ControlTemplate TargetType="{x:Type TextBox}">
  1570. <Border x:Name="Bd" VerticalAlignment="Center">
  1571. <Border.Background>
  1572. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1573. </Border.Background>
  1574. <Grid>
  1575. <ScrollViewer
  1576. x:Name="PART_ContentHost"
  1577. VerticalAlignment="Center"
  1578. HorizontalScrollBarVisibility="Hidden"
  1579. VerticalScrollBarVisibility="Hidden" />
  1580. <Image
  1581. Width="20"
  1582. Margin="10,3,3,3"
  1583. HorizontalAlignment="Left"
  1584. Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
  1585. Stretch="Uniform" />
  1586. </Grid>
  1587. </Border>
  1588. <ControlTemplate.Triggers>
  1589. <Trigger Property="IsEnabled" Value="false">
  1590. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1591. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1592. </Trigger>
  1593. <Trigger Property="IsMouseOver" Value="true">
  1594. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1595. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1596. </Trigger>
  1597. <Trigger Property="IsKeyboardFocused" Value="true">
  1598. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1599. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1600. </Trigger>
  1601. </ControlTemplate.Triggers>
  1602. </ControlTemplate>
  1603. </Setter.Value>
  1604. </Setter>
  1605. <Style.Triggers>
  1606. <MultiTrigger>
  1607. <MultiTrigger.Conditions>
  1608. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1609. <Condition Property="IsSelectionActive" Value="false" />
  1610. </MultiTrigger.Conditions>
  1611. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1612. </MultiTrigger>
  1613. </Style.Triggers>
  1614. </Style>
  1615. <!--#endregion-->
  1616. <!--#region UserNameTextBoxStyle-->
  1617. <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
  1618. <GradientStop Offset="0.05" Color="#ABADB3" />
  1619. <GradientStop Offset="0.07" Color="#E2E3EA" />
  1620. <GradientStop Offset="1" Color="#E3E9EF" />
  1621. </LinearGradientBrush>
  1622. <Style
  1623. x:Key="UserNameTextBoxStyle"
  1624. BasedOn="{x:Null}"
  1625. TargetType="{x:Type TextBox}">
  1626. <Setter Property="Foreground" Value="White" />
  1627. <Setter Property="Background" Value="Transparent" />
  1628. <Setter Property="Padding" Value="1" />
  1629. <Setter Property="CaretBrush" Value="Aqua" />
  1630. <Setter Property="Height" Value="40" />
  1631. <Setter Property="Width" Value="135" />
  1632. <Setter Property="HorizontalContentAlignment" Value="Center" />
  1633. <Setter Property="FontSize" Value="16" />
  1634. <Setter Property="HorizontalAlignment" Value="Left" />
  1635. <Setter Property="AllowDrop" Value="true" />
  1636. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1637. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1638. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1639. <Setter Property="Template">
  1640. <Setter.Value>
  1641. <ControlTemplate TargetType="{x:Type TextBox}">
  1642. <Border x:Name="Bd" VerticalAlignment="Center">
  1643. <Grid>
  1644. <ScrollViewer
  1645. x:Name="PART_ContentHost"
  1646. VerticalAlignment="Center"
  1647. HorizontalScrollBarVisibility="Hidden"
  1648. VerticalScrollBarVisibility="Hidden" />
  1649. <Path
  1650. x:Name="p1"
  1651. Stroke="#7720FDFA"
  1652. StrokeThickness="1">
  1653. <Path.Data>
  1654. <PathGeometry>
  1655. <PathFigure IsClosed="False" StartPoint="1, 1">
  1656. <LineSegment Point="133,1" />
  1657. <LineSegment Point="133,38" />
  1658. <LineSegment Point="1,38" />
  1659. <LineSegment Point="1,1" />
  1660. </PathFigure>
  1661. </PathGeometry>
  1662. </Path.Data>
  1663. </Path>
  1664. <Path
  1665. Name="p2"
  1666. Stroke="#aa20FDFA"
  1667. StrokeThickness="3">
  1668. <Path.Data>
  1669. <PathGeometry>
  1670. <PathFigure IsClosed="False" StartPoint="10, 1">
  1671. <LineSegment Point="1,1" />
  1672. <LineSegment Point="1,10" />
  1673. </PathFigure>
  1674. </PathGeometry>
  1675. </Path.Data>
  1676. </Path>
  1677. <Path
  1678. Name="p3"
  1679. Stroke="#aa20FDFA"
  1680. StrokeThickness="3">
  1681. <Path.Data>
  1682. <PathGeometry>
  1683. <PathFigure IsClosed="False" StartPoint="125, 1">
  1684. <LineSegment Point="133,1" />
  1685. <LineSegment Point="133,10" />
  1686. </PathFigure>
  1687. </PathGeometry>
  1688. </Path.Data>
  1689. </Path>
  1690. <Path
  1691. x:Name="p4"
  1692. Stroke="#aa20FDFA"
  1693. StrokeThickness="3">
  1694. <Path.Data>
  1695. <PathGeometry>
  1696. <PathFigure IsClosed="False" StartPoint="125, 38">
  1697. <LineSegment Point="133,38" />
  1698. <LineSegment Point="133,30" />
  1699. </PathFigure>
  1700. </PathGeometry>
  1701. </Path.Data>
  1702. </Path>
  1703. <Path
  1704. x:Name="p5"
  1705. Stroke="#aa20FDFA"
  1706. StrokeThickness="3">
  1707. <Path.Data>
  1708. <PathGeometry>
  1709. <PathFigure IsClosed="False" StartPoint="1, 30">
  1710. <LineSegment Point="1,38" />
  1711. <LineSegment Point="10,38" />
  1712. </PathFigure>
  1713. </PathGeometry>
  1714. </Path.Data>
  1715. </Path>
  1716. </Grid>
  1717. </Border>
  1718. <ControlTemplate.Triggers>
  1719. <Trigger Property="IsEnabled" Value="false">
  1720. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1721. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1722. </Trigger>
  1723. <Trigger Property="IsMouseOver" Value="true">
  1724. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1725. <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
  1726. <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
  1727. <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
  1728. <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
  1729. <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
  1730. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1731. </Trigger>
  1732. <Trigger Property="IsKeyboardFocused" Value="true">
  1733. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1734. <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
  1735. <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
  1736. <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
  1737. <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
  1738. <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
  1739. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1740. </Trigger>
  1741. </ControlTemplate.Triggers>
  1742. </ControlTemplate>
  1743. </Setter.Value>
  1744. </Setter>
  1745. <Style.Triggers>
  1746. <MultiTrigger>
  1747. <MultiTrigger.Conditions>
  1748. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1749. <Condition Property="IsSelectionActive" Value="false" />
  1750. </MultiTrigger.Conditions>
  1751. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1752. </MultiTrigger>
  1753. </Style.Triggers>
  1754. </Style>
  1755. <!--#endregion-->
  1756. <!--#region TextBlock-->
  1757. <Style x:Key="80号字体样式" TargetType="TextBlock">
  1758. <Setter Property="FontSize" Value="16" />
  1759. <Setter Property="TextWrapping" Value="Wrap" />
  1760. <Setter Property="FontFamily" Value="楷体" />
  1761. <Setter Property="Foreground" Value="#FFFCD5B5" />
  1762. </Style>
  1763. <Style TargetType="TextBlock">
  1764. <Style.Setters>
  1765. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1766. <Setter Property="HorizontalAlignment" Value="Left" />
  1767. <Setter Property="VerticalAlignment" Value="Center" />
  1768. <Setter Property="FontSize" Value="20" />
  1769. </Style.Setters>
  1770. </Style>
  1771. <Style x:Key="Title" TargetType="TextBlock">
  1772. <Setter Property="FontSize" Value="18" />
  1773. <Setter Property="Foreground" Value="#FF58C7EE" />
  1774. <Setter Property="VerticalAlignment" Value="Center" />
  1775. <Setter Property="HorizontalAlignment" Value="Center" />
  1776. </Style>
  1777. <Style x:Key="数码管Text" TargetType="TextBlock">
  1778. <Setter Property="FontFamily" Value="../Fonts/#Quartz M" />
  1779. <Setter Property="FontSize" Value="18" />
  1780. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1781. <Setter Property="VerticalAlignment" Value="Center" />
  1782. <Setter Property="HorizontalAlignment" Value="Center" />
  1783. </Style>
  1784. <!--#endregion-->
  1785. <!--#region GroupBox-->
  1786. <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
  1787. <Style TargetType="{x:Type GroupBox}">
  1788. <Setter Property="BorderThickness" Value="0" />
  1789. <Setter Property="Background" Value="Transparent" />
  1790. <Setter Property="Foreground" Value="{DynamicResource Titleforeground}" />
  1791. <Setter Property="Template">
  1792. <Setter.Value>
  1793. <ControlTemplate TargetType="{x:Type GroupBox}">
  1794. <Grid SnapsToDevicePixels="true">
  1795. <Grid.ColumnDefinitions>
  1796. <ColumnDefinition Width="6" />
  1797. <ColumnDefinition Width="Auto" />
  1798. <ColumnDefinition Width="*" />
  1799. <ColumnDefinition Width="6" />
  1800. </Grid.ColumnDefinitions>
  1801. <Grid.RowDefinitions>
  1802. <RowDefinition Height="Auto" />
  1803. <RowDefinition Height="Auto" />
  1804. <RowDefinition Height="*" />
  1805. <RowDefinition Height="6" />
  1806. </Grid.RowDefinitions>
  1807. <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
  1808. <Border
  1809. Grid.Row="2"
  1810. Grid.RowSpan="2"
  1811. Grid.ColumnSpan="4"
  1812. Margin="0,0,0,0"
  1813. BorderThickness="0"
  1814. CornerRadius="0" />
  1815. <Image
  1816. Grid.Row="0"
  1817. Grid.RowSpan="2"
  1818. Grid.Column="1"
  1819. Height="4"
  1820. Margin="0,5,0,0"
  1821. HorizontalAlignment="Left"
  1822. Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
  1823. <Border
  1824. x:Name="Header"
  1825. Grid.Row="0"
  1826. Grid.RowSpan="2"
  1827. Grid.Column="1"
  1828. Height="30"
  1829. Margin="30,0,0,0"
  1830. Padding="3,1,3,0">
  1831. <ContentPresenter
  1832. VerticalAlignment="Center"
  1833. ContentSource="Header"
  1834. RecognizesAccessKey="True"
  1835. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1836. </Border>
  1837. <ContentPresenter
  1838. Grid.Row="2"
  1839. Grid.Column="1"
  1840. Grid.ColumnSpan="2"
  1841. Margin="{TemplateBinding Padding}"
  1842. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1843. </Grid>
  1844. </ControlTemplate>
  1845. </Setter.Value>
  1846. </Setter>
  1847. </Style>
  1848. <!--#endregion-->
  1849. <!--#region 空MenuHeader-->
  1850. <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
  1851. <Setter Property="Height" Value="Auto" />
  1852. <Setter Property="Template">
  1853. <Setter.Value>
  1854. <ControlTemplate TargetType="{x:Type MenuItem}">
  1855. <Grid Margin="1">
  1856. <ContentPresenter
  1857. x:Name="Presenter"
  1858. Margin="{TemplateBinding Padding}"
  1859. ContentSource="Header" />
  1860. </Grid>
  1861. </ControlTemplate>
  1862. </Setter.Value>
  1863. </Setter>
  1864. </Style>
  1865. <!--#endregion-->
  1866. <!--#region dataGrid-->
  1867. <Style x:Key="dataGrid_Style" TargetType="DataGrid">
  1868. <!-- 网格线颜色 -->
  1869. <Setter Property="CanUserResizeColumns" Value="false" />
  1870. <Setter Property="Background" Value="Transparent" />
  1871. <Setter Property="BorderBrush" Value="#a2c2e8" />
  1872. <Setter Property="HorizontalGridLinesBrush">
  1873. <Setter.Value>
  1874. <SolidColorBrush Color="#a2c2e8" />
  1875. </Setter.Value>
  1876. </Setter>
  1877. <Setter Property="VerticalGridLinesBrush">
  1878. <Setter.Value>
  1879. <SolidColorBrush Color="#a2c2e8" />
  1880. </Setter.Value>
  1881. </Setter>
  1882. </Style>
  1883. <!--#region dataGridRow-->
  1884. <Style x:Key="DatagridRow_Style" TargetType="DataGridRow">
  1885. <Setter Property="Background" Value="#3afdff" />
  1886. <Setter Property="Foreground" Value="White" />
  1887. <Setter Property="Height" Value="20" />
  1888. <Style.Triggers>
  1889. <!-- 隔行换色 -->
  1890. <Trigger Property="AlternationIndex" Value="0">
  1891. <Setter Property="Background" Value="#FFFAFAFA" />
  1892. </Trigger>
  1893. <Trigger Property="AlternationIndex" Value="1">
  1894. <Setter Property="Background" Value="#FFF5F5F7" />
  1895. </Trigger>
  1896. <Trigger Property="IsMouseOver" Value="True">
  1897. <Setter Property="Background" Value="#4fade8" />
  1898. </Trigger>
  1899. <Trigger Property="IsSelected" Value="True">
  1900. <Setter Property="Background" Value="#4fade8" />
  1901. <Setter Property="Foreground" Value="#FF111111" />
  1902. </Trigger>
  1903. </Style.Triggers>
  1904. </Style>
  1905. <!--#endregion-->
  1906. <!--#region dataGridHeader-->
  1907. <Style x:Key="dataGridHeader_Style" TargetType="DataGridColumnHeader">
  1908. <Setter Property="SnapsToDevicePixels" Value="True" />
  1909. <Setter Property="MinWidth" Value="0" />
  1910. <Setter Property="MinHeight" Value="30" />
  1911. <Setter Property="Foreground" Value="White" />
  1912. <Setter Property="FontSize" Value="18" />
  1913. <Setter Property="Cursor" Value="Hand" />
  1914. <Setter Property="Template">
  1915. <Setter.Value>
  1916. <ControlTemplate TargetType="DataGridColumnHeader">
  1917. <Border
  1918. x:Name="BackgroundBorder"
  1919. Width="Auto"
  1920. BorderBrush="#e6dbba"
  1921. BorderThickness="0,1,0,1">
  1922. <Grid>
  1923. <Grid.ColumnDefinitions>
  1924. <ColumnDefinition Width="*" />
  1925. </Grid.ColumnDefinitions>
  1926. <ContentPresenter
  1927. Margin="0,0,0,0"
  1928. HorizontalAlignment="Center"
  1929. VerticalAlignment="Center" />
  1930. <Path
  1931. x:Name="SortArrow"
  1932. Grid.Column="0"
  1933. Width="8"
  1934. Height="6"
  1935. Margin="0,0,50,0"
  1936. VerticalAlignment="Center"
  1937. Data="M0,0 L1,0 0.5,1 z"
  1938. Fill="White"
  1939. RenderTransformOrigin="1,1"
  1940. Stretch="Fill"
  1941. Visibility="Collapsed" />
  1942. <Rectangle
  1943. Grid.ColumnSpan="1"
  1944. Width="1"
  1945. HorizontalAlignment="Right"
  1946. Fill="#d6c79b" />
  1947. </Grid>
  1948. </Border>
  1949. </ControlTemplate>
  1950. </Setter.Value>
  1951. </Setter>
  1952. <Setter Property="Height" Value="25" />
  1953. </Style>
  1954. <!--#endregion-->
  1955. <!--#region dataGridCell-->
  1956. <Style x:Key="dataGridCell_Style" TargetType="DataGridCell">
  1957. <Setter Property="Height" Value="20" />
  1958. <Setter Property="FontSize" Value="14" />
  1959. <Style.Triggers>
  1960. <Trigger Property="IsSelected" Value="True">
  1961. <Setter Property="Background" Value="White" />
  1962. <Setter Property="BorderThickness" Value="0" />
  1963. <Setter Property="Foreground" Value="Black" />
  1964. </Trigger>
  1965. </Style.Triggers>
  1966. </Style>
  1967. <!--#endregion-->
  1968. <!--#endregion-->
  1969. </ResourceDictionary>