终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

2041 satır
98 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 ScaleY="-0.6" ScaleX="0.8"/>
  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/物流车.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碗" TargetType="Border">
  420. <Style.Setters>
  421. <Setter Property="Height" Value="34"/>
  422. <Setter Property="Width" Value="40"/>
  423. <Setter Property="VerticalAlignment" Value="Bottom"/>
  424. <Setter Property="Background">
  425. <Setter.Value>
  426. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/汤碗.png" />
  427. </Setter.Value>
  428. </Setter>
  429. </Style.Setters>
  430. </Style>
  431. <Style x:Key="border菜" TargetType="Border">
  432. <Style.Setters>
  433. <Setter Property="Margin" Value="0,-7,0,0"/>
  434. <Setter Property="Height" Value="20"/>
  435. <Setter Property="Width" Value="28"/>
  436. <Setter Property="VerticalAlignment" Value="Top"/>
  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="Background">
  447. <Setter.Value>
  448. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 1, 0.03" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
  449. </Setter.Value>
  450. </Setter>
  451. </Style.Setters>
  452. </Style>
  453. <Style x:Key="border水平墙" TargetType="Border">
  454. <Style.Setters>
  455. <Setter Property="Background">
  456. <Setter.Value>
  457. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 0.02, 1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
  458. </Setter.Value>
  459. </Setter>
  460. </Style.Setters>
  461. </Style>
  462. <Style x:Key="border垂直墙1" TargetType="Border">
  463. <Style.Setters>
  464. <Setter Property="Background">
  465. <Setter.Value>
  466. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 1, 0.1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
  467. </Setter.Value>
  468. </Setter>
  469. </Style.Setters>
  470. </Style>
  471. <Style x:Key="border水平墙1" TargetType="Border">
  472. <Style.Setters>
  473. <Setter Property="Background">
  474. <Setter.Value>
  475. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 0.1, 1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
  476. </Setter.Value>
  477. </Setter>
  478. </Style.Setters>
  479. </Style>
  480. <Style x:Key="FromBJ" TargetType="Border">
  481. <Style.Setters>
  482. <Setter Property="Background">
  483. <Setter.Value>
  484. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景.png" />
  485. </Setter.Value>
  486. </Setter>
  487. </Style.Setters>
  488. </Style>
  489. <Style x:Key="button_no" TargetType="Border">
  490. <Style.Setters>
  491. <Setter Property="Background">
  492. <Setter.Value>
  493. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
  494. </Setter.Value>
  495. </Setter>
  496. </Style.Setters>
  497. </Style>
  498. <Style x:Key="button_select" TargetType="Border">
  499. <Style.Setters>
  500. <Setter Property="Background">
  501. <Setter.Value>
  502. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
  503. </Setter.Value>
  504. </Setter>
  505. </Style.Setters>
  506. </Style>
  507. <Style x:Key="bordertopL" TargetType="Border">
  508. <Style.Setters>
  509. <Setter Property="Height" Value="80" />
  510. <Setter Property="Width" Value="300" />
  511. <Setter Property="VerticalAlignment" Value="Top" />
  512. <Setter Property="HorizontalAlignment" Value="Left" />
  513. <Setter Property="Background">
  514. <Setter.Value>
  515. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  516. </Setter.Value>
  517. </Setter>
  518. </Style.Setters>
  519. </Style>
  520. <Style x:Key="border阴影边框" TargetType="Border">
  521. <Style.Setters>
  522. <Setter Property="Height" Value="50" />
  523. <Setter Property="VerticalAlignment" Value="Top" />
  524. <Setter Property="Background">
  525. <Setter.Value>
  526. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  527. </Setter.Value>
  528. </Setter>
  529. </Style.Setters>
  530. </Style>
  531. <Style x:Key="border阴影边框扩展" TargetType="Border">
  532. <Style.Setters>
  533. <Setter Property="Background">
  534. <Setter.Value>
  535. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  536. </Setter.Value>
  537. </Setter>
  538. </Style.Setters>
  539. </Style>
  540. <Style x:Key="border边角" TargetType="Border">
  541. <Style.Setters>
  542. <Setter Property="Background">
  543. <Setter.Value>
  544. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
  545. </Setter.Value>
  546. </Setter>
  547. </Style.Setters>
  548. </Style>
  549. <Style x:Key="bordertop矩形" TargetType="Border">
  550. <Style.Setters>
  551. <Setter Property="Background">
  552. <Setter.Value>
  553. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  554. </Setter.Value>
  555. </Setter>
  556. </Style.Setters>
  557. </Style>
  558. <Style x:Key="bordertopTitle" TargetType="Border">
  559. <Style.Setters>
  560. <Setter Property="Height" Value="100" />
  561. <Setter Property="Background">
  562. <Setter.Value>
  563. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  564. </Setter.Value>
  565. </Setter>
  566. </Style.Setters>
  567. </Style>
  568. <Style x:Key="borderFromTitle" TargetType="Border">
  569. <Style.Setters>
  570. <Setter Property="Background">
  571. <Setter.Value>
  572. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
  573. </Setter.Value>
  574. </Setter>
  575. </Style.Setters>
  576. </Style>
  577. <Style x:Key="border窗体背景1" TargetType="Border">
  578. <Style.Setters>
  579. <Setter Property="Background">
  580. <Setter.Value>
  581. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
  582. </Setter.Value>
  583. </Setter>
  584. </Style.Setters>
  585. </Style>
  586. <Style x:Key="border窗体背景2" TargetType="Border">
  587. <Style.Setters>
  588. <Setter Property="Background">
  589. <Setter.Value>
  590. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
  591. </Setter.Value>
  592. </Setter>
  593. </Style.Setters>
  594. </Style>
  595. <Style x:Key="borderPop_bg" TargetType="Border">
  596. <Style.Setters>
  597. <Setter Property="Background">
  598. <Setter.Value>
  599. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  600. </Setter.Value>
  601. </Setter>
  602. </Style.Setters>
  603. </Style>
  604. <Style x:Key="border背景two" TargetType="Border">
  605. <Style.Setters>
  606. <Setter Property="Background">
  607. <Setter.Value>
  608. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
  609. </Setter.Value>
  610. </Setter>
  611. </Style.Setters>
  612. </Style>
  613. <Style x:Key="border窗体背景3" TargetType="Border">
  614. <Style.Setters>
  615. <Setter Property="Background">
  616. <Setter.Value>
  617. <ImageBrush
  618. ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
  619. Opacity="1"
  620. Stretch="Fill"
  621. TileMode="FlipX"
  622. Viewbox="0,0,1,1"
  623. ViewboxUnits="RelativeToBoundingBox" />
  624. </Setter.Value>
  625. </Setter>
  626. </Style.Setters>
  627. </Style>
  628. <Style x:Key="border窗体背景4" TargetType="Border">
  629. <Style.Setters>
  630. <Setter Property="Background">
  631. <Setter.Value>
  632. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
  633. </Setter.Value>
  634. </Setter>
  635. </Style.Setters>
  636. </Style>
  637. <Style x:Key="border窗体背景5" TargetType="Border">
  638. <Style.Setters>
  639. <Setter Property="Background">
  640. <Setter.Value>
  641. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
  642. </Setter.Value>
  643. </Setter>
  644. </Style.Setters>
  645. </Style>
  646. <Style x:Key="border窗体背景6" TargetType="Border">
  647. <Style.Setters>
  648. <Setter Property="Background">
  649. <Setter.Value>
  650. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
  651. </Setter.Value>
  652. </Setter>
  653. </Style.Setters>
  654. </Style>
  655. <Style x:Key="border窗体背景7" TargetType="Border">
  656. <Style.Setters>
  657. <Setter Property="Background">
  658. <Setter.Value>
  659. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
  660. </Setter.Value>
  661. </Setter>
  662. </Style.Setters>
  663. </Style>
  664. <Style x:Key="border圆角矩形" TargetType="Border">
  665. <Style.Setters>
  666. <Setter Property="BorderThickness" Value="3" />
  667. <Setter Property="Background">
  668. <Setter.Value>
  669. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
  670. </Setter.Value>
  671. </Setter>
  672. </Style.Setters>
  673. </Style>
  674. <Style x:Key="border不规则矩形" TargetType="Border">
  675. <Style.Setters>
  676. <Setter Property="BorderThickness" Value="0.5" />
  677. <Setter Property="Background">
  678. <Setter.Value>
  679. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
  680. </Setter.Value>
  681. </Setter>
  682. </Style.Setters>
  683. </Style>
  684. <Style x:Key="border矩形" TargetType="Border">
  685. <Style.Setters>
  686. <Setter Property="Background">
  687. <Setter.Value>
  688. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  689. </Setter.Value>
  690. </Setter>
  691. </Style.Setters>
  692. </Style>
  693. <Style x:Key="border顶部背景" TargetType="Border">
  694. <Style.Setters>
  695. <Setter Property="Background">
  696. <Setter.Value>
  697. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
  698. </Setter.Value>
  699. </Setter>
  700. <Setter Property="BorderBrush">
  701. <Setter.Value>
  702. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  703. </Setter.Value>
  704. </Setter>
  705. <Setter Property="BorderThickness" Value="0,0,0,1" />
  706. </Style.Setters>
  707. </Style>
  708. <Style x:Key="border标题背景" TargetType="Border">
  709. <Style.Setters>
  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/顶部切图/窗体背景2.png" />
  731. </Setter.Value>
  732. </Setter>
  733. </Style.Setters>
  734. </Style>
  735. <Style x:Key="border顶部标题背景" TargetType="Border">
  736. <Style.Setters>
  737. <Setter Property="Background">
  738. <Setter.Value>
  739. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  740. </Setter.Value>
  741. </Setter>
  742. </Style.Setters>
  743. </Style>
  744. <Style x:Key="border竖线" TargetType="Border">
  745. <Style.Setters>
  746. <Setter Property="Width" Value="1" />
  747. <Setter Property="Height" Value="40" />
  748. <Setter Property="BorderThickness" Value="0" />
  749. <Setter Property="Margin" Value="5" />
  750. <Setter Property="Background">
  751. <Setter.Value>
  752. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
  753. </Setter.Value>
  754. </Setter>
  755. </Style.Setters>
  756. </Style>
  757. <Style x:Key="border内部" TargetType="Border">
  758. <Style.Setters>
  759. <Setter Property="Width" Value="320" />
  760. <Setter Property="HorizontalAlignment" Value="Stretch" />
  761. <Setter Property="VerticalAlignment" Value="Stretch" />
  762. <Setter Property="BorderThickness" Value="0" />
  763. <Setter Property="Margin" Value="5" />
  764. <Setter Property="Background">
  765. <Setter.Value>
  766. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
  767. </Setter.Value>
  768. </Setter>
  769. </Style.Setters>
  770. </Style>
  771. <Style x:Key="border矩形2" TargetType="Border">
  772. <Style.Setters>
  773. <Setter Property="Margin" Value="0,0,10,0" />
  774. <Setter Property="VerticalAlignment" Value="Top" />
  775. <Setter Property="HorizontalAlignment" Value="Left" />
  776. <Setter Property="Width" Value="92" />
  777. <Setter Property="Height" Value="46" />
  778. <Setter Property="BorderThickness" Value="0" />
  779. <Setter Property="Background">
  780. <Setter.Value>
  781. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.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="Background">
  802. <Setter.Value>
  803. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
  804. </Setter.Value>
  805. </Setter>
  806. </Style.Setters>
  807. </Style>
  808. <Style x:Key="border边框2" TargetType="Border">
  809. <Style.Setters>
  810. <Setter Property="Background">
  811. <Setter.Value>
  812. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
  813. </Setter.Value>
  814. </Setter>
  815. </Style.Setters>
  816. </Style>
  817. <Style x:Key="border右下" TargetType="Border">
  818. <Style.Setters>
  819. <Setter Property="HorizontalAlignment" Value="Right" />
  820. <Setter Property="VerticalAlignment" Value="Bottom" />
  821. <Setter Property="Height" Value="23" />
  822. <Setter Property="Width" Value="22" />
  823. <Setter Property="Background">
  824. <Setter.Value>
  825. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
  826. </Setter.Value>
  827. </Setter>
  828. </Style.Setters>
  829. </Style>
  830. <Style x:Key="border左下" TargetType="Border">
  831. <Style.Setters>
  832. <Setter Property="HorizontalAlignment" Value="Left" />
  833. <Setter Property="VerticalAlignment" Value="Bottom" />
  834. <Setter Property="Height" Value="22" />
  835. <Setter Property="Width" Value="23" />
  836. <Setter Property="Background">
  837. <Setter.Value>
  838. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
  839. </Setter.Value>
  840. </Setter>
  841. </Style.Setters>
  842. </Style>
  843. <Style x:Key="border左上" TargetType="Border">
  844. <Style.Setters>
  845. <Setter Property="HorizontalAlignment" Value="Left" />
  846. <Setter Property="VerticalAlignment" Value="Top" />
  847. <Setter Property="Height" Value="22" />
  848. <Setter Property="Width" Value="23" />
  849. <Setter Property="Background">
  850. <Setter.Value>
  851. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
  852. </Setter.Value>
  853. </Setter>
  854. </Style.Setters>
  855. </Style>
  856. <Style x:Key="border右上" TargetType="Border">
  857. <Style.Setters>
  858. <Setter Property="HorizontalAlignment" Value="Right" />
  859. <Setter Property="VerticalAlignment" Value="Top" />
  860. <Setter Property="Height" Value="23" />
  861. <Setter Property="Width" Value="22" />
  862. <Setter Property="Background">
  863. <Setter.Value>
  864. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
  865. </Setter.Value>
  866. </Setter>
  867. </Style.Setters>
  868. </Style>
  869. <!--#endregion-->
  870. <!--#region Button-->
  871. <Style x:Key="TitleBarStyle" TargetType="Button">
  872. <Setter Property="Foreground" Value="White" />
  873. <Setter Property="FontSize" Value="20" />
  874. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
  875. <Setter Property="Template">
  876. <Setter.Value>
  877. <ControlTemplate TargetType="Button">
  878. <Border Name="TitleBarBr" Background="Transparent">
  879. <ContentPresenter
  880. Margin="{TemplateBinding Margin}"
  881. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  882. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  883. </Border>
  884. <ControlTemplate.Triggers>
  885. <Trigger Property="IsMouseOver" Value="true">
  886. <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
  887. </Trigger>
  888. </ControlTemplate.Triggers>
  889. </ControlTemplate>
  890. </Setter.Value>
  891. </Setter>
  892. </Style>
  893. <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
  894. <Style.Setters>
  895. <Setter Property="VerticalContentAlignment" Value="Center" />
  896. <Setter Property="HorizontalContentAlignment" Value="Center" />
  897. <Setter Property="Cursor" Value="Hand" />
  898. <Setter Property="Width" Value="65" />
  899. <Setter Property="Height" Value="24" />
  900. <Setter Property="HorizontalAlignment" Value="Right" />
  901. <Setter Property="Template">
  902. <Setter.Value>
  903. <ControlTemplate TargetType="Button">
  904. <!--<ControlTemplate.Resources>
  905. <Storyboard x:Key="OnMouseEnter1">
  906. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  907. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  908. </ColorAnimationUsingKeyFrames>
  909. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  910. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  911. </ColorAnimationUsingKeyFrames>
  912. </Storyboard>
  913. </ControlTemplate.Resources>-->
  914. <Border x:Name="BD" CornerRadius="2">
  915. <Border.Background>
  916. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
  917. </Border.Background>
  918. <StackPanel
  919. Margin="5"
  920. HorizontalAlignment="Center"
  921. Orientation="Horizontal">
  922. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  923. <TextBlock
  924. x:Name="textBlock"
  925. Margin="5,0,0,0"
  926. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  927. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  928. FontSize="14"
  929. Foreground="#A5FFFFFF"
  930. Text="{TemplateBinding Content}" />
  931. </StackPanel>
  932. <VisualStateManager.VisualStateGroups>
  933. <VisualStateGroup x:Name="CommonStates">
  934. <VisualState x:Name="Normal" />
  935. <VisualState x:Name="MouseOver">
  936. <Storyboard>
  937. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  938. <EasingColorKeyFrame KeyTime="0" Value="White" />
  939. </ColorAnimationUsingKeyFrames>
  940. <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  941. <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
  942. </ColorAnimationUsingKeyFrames>
  943. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
  944. <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
  945. </DoubleAnimationUsingKeyFrames>
  946. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  947. <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
  948. </ColorAnimationUsingKeyFrames>-->
  949. </Storyboard>
  950. </VisualState>
  951. <VisualState x:Name="Pressed" />
  952. <VisualState x:Name="Disabled" />
  953. </VisualStateGroup>
  954. </VisualStateManager.VisualStateGroups>
  955. </Border>
  956. </ControlTemplate>
  957. </Setter.Value>
  958. </Setter>
  959. </Style.Setters>
  960. </Style>
  961. <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
  962. <Style.Setters>
  963. <Setter Property="VerticalContentAlignment" Value="Center" />
  964. <Setter Property="HorizontalContentAlignment" Value="Center" />
  965. <Setter Property="Cursor" Value="Hand" />
  966. <Setter Property="Width" Value="65" />
  967. <Setter Property="Height" Value="24" />
  968. <Setter Property="HorizontalAlignment" Value="Right" />
  969. <Setter Property="Template">
  970. <Setter.Value>
  971. <ControlTemplate TargetType="Button">
  972. <Border x:Name="BD" CornerRadius="2">
  973. <Border.Background>
  974. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
  975. </Border.Background>
  976. <StackPanel
  977. Margin="5"
  978. HorizontalAlignment="Center"
  979. Orientation="Horizontal">
  980. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  981. <TextBlock
  982. x:Name="textBlock"
  983. Margin="5,0,0,0"
  984. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  985. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  986. Foreground="#A5FFFFFF"
  987. Text="{TemplateBinding Content}" />
  988. </StackPanel>
  989. <VisualStateManager.VisualStateGroups>
  990. <VisualStateGroup x:Name="CommonStates">
  991. <VisualState x:Name="Normal" />
  992. <VisualState x:Name="MouseOver">
  993. <Storyboard>
  994. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  995. <EasingColorKeyFrame KeyTime="0" Value="White" />
  996. </ColorAnimationUsingKeyFrames>
  997. </Storyboard>
  998. </VisualState>
  999. <VisualState x:Name="Pressed" />
  1000. <VisualState x:Name="Disabled" />
  1001. </VisualStateGroup>
  1002. </VisualStateManager.VisualStateGroups>
  1003. </Border>
  1004. </ControlTemplate>
  1005. </Setter.Value>
  1006. </Setter>
  1007. </Style.Setters>
  1008. </Style>
  1009. <Style x:Key="CommonBtn_1" TargetType="Button">
  1010. <Style.Setters>
  1011. <Setter Property="VerticalContentAlignment" Value="Center" />
  1012. <Setter Property="Cursor" Value="Hand" />
  1013. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1014. <Setter Property="Width" Value="65" />
  1015. <Setter Property="Height" Value="24" />
  1016. <Setter Property="Template">
  1017. <Setter.Value>
  1018. <ControlTemplate TargetType="Button">
  1019. <ControlTemplate.Resources>
  1020. <Storyboard x:Key="OnMouseEnter1">
  1021. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
  1022. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
  1023. </ColorAnimationUsingKeyFrames>
  1024. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  1025. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
  1026. </ColorAnimationUsingKeyFrames>
  1027. </Storyboard>
  1028. </ControlTemplate.Resources>
  1029. <Border
  1030. x:Name="BD"
  1031. Background="Transparent"
  1032. BorderBrush="#05408a"
  1033. BorderThickness="1"
  1034. CornerRadius="12">
  1035. <TextBlock
  1036. x:Name="textBlock"
  1037. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1038. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1039. FontSize="12"
  1040. Foreground="{DynamicResource foreground}"
  1041. Text="{TemplateBinding Content}" />
  1042. </Border>
  1043. <ControlTemplate.Triggers>
  1044. <Trigger Property="IsMouseOver" Value="true">
  1045. <Setter TargetName="BD" Property="Background" Value="#009dff" />
  1046. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
  1047. </Trigger>
  1048. <Trigger Property="IsEnabled" Value="False">
  1049. <Setter TargetName="BD" Property="Background" Value="#ff55" />
  1050. </Trigger>
  1051. </ControlTemplate.Triggers>
  1052. </ControlTemplate>
  1053. </Setter.Value>
  1054. </Setter>
  1055. </Style.Setters>
  1056. </Style>
  1057. <Style TargetType="Button">
  1058. <Style.Setters>
  1059. <Setter Property="VerticalContentAlignment" Value="Center" />
  1060. <Setter Property="Cursor" Value="Hand" />
  1061. <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1062. <Setter Property="Height" Value="25" />
  1063. <Setter Property="Template">
  1064. <Setter.Value>
  1065. <ControlTemplate TargetType="Button">
  1066. <Border x:Name="BD" Cursor="Hand">
  1067. <StackPanel
  1068. HorizontalAlignment="Center"
  1069. Cursor="Hand"
  1070. Orientation="Horizontal">
  1071. <!--<Border Width="16" Margin="5">
  1072. <Border.Background>
  1073. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  1074. </Border.Background>
  1075. </Border>-->
  1076. <TextBlock
  1077. x:Name="textBlock"
  1078. Margin="10,0,10,0"
  1079. VerticalAlignment="Center"
  1080. FontSize="14"
  1081. Foreground="{DynamicResource ButtonSelectForeground}"
  1082. Text="{TemplateBinding Content}" />
  1083. <!-- Text="{TemplateBinding Content}" -->
  1084. </StackPanel>
  1085. </Border>
  1086. <ControlTemplate.Triggers>
  1087. <Trigger Property="IsMouseOver" Value="true">
  1088. <Setter TargetName="BD" Property="Background">
  1089. <Setter.Value>
  1090. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  1091. </Setter.Value>
  1092. </Setter>
  1093. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1094. </Trigger>
  1095. <Trigger Property="IsMouseOver" Value="False">
  1096. <Setter TargetName="BD" Property="Background">
  1097. <Setter.Value>
  1098. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  1099. </Setter.Value>
  1100. </Setter>
  1101. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1102. </Trigger>
  1103. <Trigger Property="IsEnabled" Value="False">
  1104. <Setter TargetName="BD" Property="Background">
  1105. <Setter.Value>
  1106. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1107. </Setter.Value>
  1108. </Setter>
  1109. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
  1110. </Trigger>
  1111. </ControlTemplate.Triggers>
  1112. </ControlTemplate>
  1113. </Setter.Value>
  1114. </Setter>
  1115. </Style.Setters>
  1116. </Style>
  1117. <Style x:Key="CommonBtn_返回" TargetType="Button">
  1118. <Style.Setters>
  1119. <Setter Property="VerticalContentAlignment" Value="Center" />
  1120. <Setter Property="Cursor" Value="Hand" />
  1121. <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1122. <Setter Property="Width" Value="68" />
  1123. <Setter Property="Height" Value="25" />
  1124. <Setter Property="Template">
  1125. <Setter.Value>
  1126. <ControlTemplate TargetType="Button">
  1127. <Border x:Name="BD" Cursor="Hand">
  1128. <StackPanel
  1129. Margin="5,0,10,0"
  1130. HorizontalAlignment="Right"
  1131. Orientation="Horizontal">
  1132. <Border Width="16" Margin="5">
  1133. <Border.Background>
  1134. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  1135. </Border.Background>
  1136. </Border>
  1137. <TextBlock
  1138. x:Name="textBlock"
  1139. VerticalAlignment="Center"
  1140. FontSize="14"
  1141. Foreground="{DynamicResource ButtonSelectForeground}"
  1142. Text="{TemplateBinding Content}" />
  1143. <!-- Text="{TemplateBinding Content}" -->
  1144. </StackPanel>
  1145. </Border>
  1146. <ControlTemplate.Triggers>
  1147. <Trigger Property="IsMouseOver" Value="true">
  1148. <Setter TargetName="BD" Property="Background">
  1149. <Setter.Value>
  1150. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  1151. </Setter.Value>
  1152. </Setter>
  1153. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1154. </Trigger>
  1155. <Trigger Property="IsMouseOver" Value="False">
  1156. <Setter TargetName="BD" Property="Background">
  1157. <Setter.Value>
  1158. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  1159. </Setter.Value>
  1160. </Setter>
  1161. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
  1162. </Trigger>
  1163. <Trigger Property="IsEnabled" Value="False">
  1164. <Setter TargetName="BD" Property="Background">
  1165. <Setter.Value>
  1166. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1167. </Setter.Value>
  1168. </Setter>
  1169. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
  1170. </Trigger>
  1171. </ControlTemplate.Triggers>
  1172. </ControlTemplate>
  1173. </Setter.Value>
  1174. </Setter>
  1175. </Style.Setters>
  1176. </Style>
  1177. <Style TargetType="{x:Type Separator}">
  1178. <Setter Property="Height" Value="1" />
  1179. <Setter Property="Margin" Value="0,4,0,4" />
  1180. <Setter Property="Template">
  1181. <Setter.Value>
  1182. <ControlTemplate TargetType="{x:Type Separator}">
  1183. <Border>
  1184. <Border.Background>
  1185. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  1186. </Border.Background>
  1187. </Border>
  1188. </ControlTemplate>
  1189. </Setter.Value>
  1190. </Setter>
  1191. </Style>
  1192. <Style x:Key="CommonBtn_功能节点" TargetType="Button">
  1193. <Style.Setters>
  1194. <Setter Property="VerticalContentAlignment" Value="Center" />
  1195. <Setter Property="Cursor" Value="Hand" />
  1196. <Setter Property="Margin" Value="10,5,10,5" />
  1197. <Setter Property="Template">
  1198. <Setter.Value>
  1199. <ControlTemplate TargetType="Button">
  1200. <StackPanel x:Name="BD" Orientation="Horizontal">
  1201. <Image
  1202. Width="24"
  1203. Margin="5"
  1204. Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
  1205. <TextBlock
  1206. x:Name="textBlock"
  1207. Margin="10,0,0,0"
  1208. HorizontalAlignment="Left"
  1209. VerticalAlignment="Center"
  1210. FontSize="12"
  1211. Foreground="#00c1c3"
  1212. Text="{TemplateBinding Content}" />
  1213. <TextBlock
  1214. x:Name="tex2tBlock"
  1215. VerticalAlignment="Center"
  1216. FontSize="14"
  1217. Foreground="#4fade8"
  1218. Text="{TemplateBinding Content}"
  1219. Visibility="Collapsed" />
  1220. </StackPanel>
  1221. <ControlTemplate.Triggers>
  1222. <Trigger Property="IsMouseOver" Value="true">
  1223. <Setter TargetName="BD" Property="Background">
  1224. <Setter.Value>
  1225. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1226. </Setter.Value>
  1227. </Setter>
  1228. </Trigger>
  1229. <Trigger Property="IsMouseOver" Value="False">
  1230. <Setter TargetName="BD" Property="Background">
  1231. <Setter.Value>
  1232. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1233. </Setter.Value>
  1234. </Setter>
  1235. </Trigger>
  1236. </ControlTemplate.Triggers>
  1237. </ControlTemplate>
  1238. </Setter.Value>
  1239. </Setter>
  1240. </Style.Setters>
  1241. </Style>
  1242. <Style x:Key="CommonBtn_产品制作" TargetType="Button">
  1243. <Style.Setters>
  1244. <Setter Property="VerticalContentAlignment" Value="Center" />
  1245. <Setter Property="Cursor" Value="Hand" />
  1246. <Setter Property="Template">
  1247. <Setter.Value>
  1248. <ControlTemplate TargetType="Button">
  1249. <StackPanel x:Name="BD" Margin="5">
  1250. <Image
  1251. Width="24"
  1252. Margin="5,10,5,0"
  1253. Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  1254. <TextBlock
  1255. x:Name="textBlock"
  1256. VerticalAlignment="Center"
  1257. FontSize="14"
  1258. Foreground="#4fade8"
  1259. Text="{TemplateBinding Content}"
  1260. Visibility="Collapsed" />
  1261. <Separator Margin="0,10,0,0" />
  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="Comm8" TargetType="Button">
  1369. <Style.Setters>
  1370. <Setter Property="VerticalContentAlignment" Value="Center" />
  1371. <Setter Property="Cursor" Value="Hand" />
  1372. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1373. <Setter Property="Width" Value="69" />
  1374. <Setter Property="Height" Value="25" />
  1375. <Setter Property="Template">
  1376. <Setter.Value>
  1377. <ControlTemplate TargetType="Button">
  1378. <!--<ControlTemplate.Resources>
  1379. <Storyboard x:Key="OnMouseEnter1">
  1380. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  1381. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  1382. </ColorAnimationUsingKeyFrames>
  1383. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  1384. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  1385. </ColorAnimationUsingKeyFrames>
  1386. </Storyboard>
  1387. </ControlTemplate.Resources>-->
  1388. <Border x:Name="BD" Cursor="Hand">
  1389. <TextBlock
  1390. x:Name="textBlock"
  1391. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1392. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1393. FontSize="12"
  1394. Foreground="{DynamicResource foreground}"
  1395. Text="{TemplateBinding Content}" />
  1396. </Border>
  1397. <ControlTemplate.Triggers>
  1398. <Trigger Property="IsMouseOver" Value="true">
  1399. <Setter TargetName="BD" Property="Background">
  1400. <Setter.Value>
  1401. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1402. </Setter.Value>
  1403. </Setter>
  1404. <Setter TargetName="textBlock" Property="Foreground" Value="White" />
  1405. </Trigger>
  1406. <Trigger Property="IsMouseOver" Value="False">
  1407. <Setter TargetName="BD" Property="Background">
  1408. <Setter.Value>
  1409. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  1410. </Setter.Value>
  1411. </Setter>
  1412. <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
  1413. </Trigger>
  1414. <Trigger Property="IsEnabled" Value="False">
  1415. <Setter TargetName="BD" Property="Background">
  1416. <Setter.Value>
  1417. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1418. </Setter.Value>
  1419. </Setter>
  1420. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  1421. </Trigger>
  1422. </ControlTemplate.Triggers>
  1423. </ControlTemplate>
  1424. </Setter.Value>
  1425. </Setter>
  1426. </Style.Setters>
  1427. </Style>
  1428. <!--#endregion-->
  1429. <!--#region TextBox-->
  1430. <Style
  1431. x:Key="TextBoxStyle人员"
  1432. BasedOn="{x:Null}"
  1433. TargetType="{x:Type TextBox}">
  1434. <Setter Property="Foreground" Value="#A4EBF7" />
  1435. <Setter Property="Background">
  1436. <Setter.Value>
  1437. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1438. </Setter.Value>
  1439. </Setter>
  1440. <Setter Property="FontSize" Value="14" />
  1441. <Setter Property="TextWrapping" Value="NoWrap" />
  1442. <Setter Property="BorderBrush" Value="Transparent" />
  1443. <Setter Property="BorderThickness" Value="1" />
  1444. <Setter Property="Padding" Value="1" />
  1445. <Setter Property="AllowDrop" Value="true" />
  1446. <Setter Property="HorizontalAlignment" Value="Left" />
  1447. <Setter Property="VerticalAlignment" Value="Center" />
  1448. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1449. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1450. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1451. <Setter Property="Height" Value="35" />
  1452. <Setter Property="Width" Value="auto" />
  1453. <Setter Property="MinWidth" Value="200" />
  1454. <Setter Property="Template">
  1455. <Setter.Value>
  1456. <ControlTemplate TargetType="{x:Type TextBox}">
  1457. <Themes:ListBoxChrome
  1458. x:Name="Bd"
  1459. Background="{TemplateBinding Background}"
  1460. BorderBrush="{TemplateBinding BorderBrush}"
  1461. BorderThickness="{TemplateBinding BorderThickness}"
  1462. RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
  1463. RenderMouseOver="{TemplateBinding IsMouseOver}"
  1464. SnapsToDevicePixels="true">
  1465. <Grid>
  1466. <Grid.ColumnDefinitions>
  1467. <ColumnDefinition Width="auto" />
  1468. <ColumnDefinition />
  1469. </Grid.ColumnDefinitions>
  1470. <Image
  1471. Width="20"
  1472. Height="Auto"
  1473. Margin="20,0,0,0"
  1474. HorizontalAlignment="Right"
  1475. Cursor="Hand"
  1476. Source="Image/搜索按钮.png"
  1477. Tag="Search" />
  1478. <ScrollViewer
  1479. x:Name="PART_ContentHost"
  1480. VerticalAlignment="Center"
  1481. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1482. <!--<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"/>-->
  1483. </Grid>
  1484. </Themes:ListBoxChrome>
  1485. <ControlTemplate.Triggers>
  1486. <Trigger Property="IsEnabled" Value="false">
  1487. <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  1488. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  1489. </Trigger>
  1490. </ControlTemplate.Triggers>
  1491. </ControlTemplate>
  1492. </Setter.Value>
  1493. </Setter>
  1494. <Style.Triggers>
  1495. <MultiTrigger>
  1496. <MultiTrigger.Conditions>
  1497. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1498. <Condition Property="IsSelectionActive" Value="false" />
  1499. </MultiTrigger.Conditions>
  1500. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1501. </MultiTrigger>
  1502. </Style.Triggers>
  1503. </Style>
  1504. <Style
  1505. x:Key="TextBoxStyle搜索框"
  1506. BasedOn="{x:Null}"
  1507. TargetType="{x:Type TextBox}">
  1508. <Setter Property="Foreground" Value="#A4EBF7" />
  1509. <Setter Property="FontSize" Value="14" />
  1510. <Setter Property="TextWrapping" Value="NoWrap" />
  1511. <Setter Property="BorderBrush" Value="Transparent" />
  1512. <Setter Property="BorderThickness" Value="1" />
  1513. <Setter Property="Margin" Value="10,0,0,0" />
  1514. <Setter Property="AllowDrop" Value="true" />
  1515. <Setter Property="CaretBrush" Value="Aqua" />
  1516. <Setter Property="Padding" Value="1" />
  1517. <Setter Property="HorizontalAlignment" Value="Left" />
  1518. <Setter Property="VerticalAlignment" Value="Center" />
  1519. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1520. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1521. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1522. <Setter Property="Height" Value="40" />
  1523. <Setter Property="Width" Value="135" />
  1524. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1525. <Setter Property="Template">
  1526. <Setter.Value>
  1527. <ControlTemplate TargetType="{x:Type TextBox}">
  1528. <Border x:Name="Bd" VerticalAlignment="Center">
  1529. <Border.Background>
  1530. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1531. </Border.Background>
  1532. <Grid>
  1533. <ScrollViewer
  1534. x:Name="PART_ContentHost"
  1535. VerticalAlignment="Center"
  1536. HorizontalScrollBarVisibility="Hidden"
  1537. VerticalScrollBarVisibility="Hidden" />
  1538. <Image
  1539. Width="20"
  1540. Margin="10,3,3,3"
  1541. HorizontalAlignment="Left"
  1542. Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
  1543. Stretch="Uniform" />
  1544. </Grid>
  1545. </Border>
  1546. <ControlTemplate.Triggers>
  1547. <Trigger Property="IsEnabled" Value="false">
  1548. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1549. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1550. </Trigger>
  1551. <Trigger Property="IsMouseOver" Value="true">
  1552. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1553. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1554. </Trigger>
  1555. <Trigger Property="IsKeyboardFocused" Value="true">
  1556. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1557. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1558. </Trigger>
  1559. </ControlTemplate.Triggers>
  1560. </ControlTemplate>
  1561. </Setter.Value>
  1562. </Setter>
  1563. <Style.Triggers>
  1564. <MultiTrigger>
  1565. <MultiTrigger.Conditions>
  1566. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1567. <Condition Property="IsSelectionActive" Value="false" />
  1568. </MultiTrigger.Conditions>
  1569. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1570. </MultiTrigger>
  1571. </Style.Triggers>
  1572. </Style>
  1573. <!--#endregion-->
  1574. <!--#region UserNameTextBoxStyle-->
  1575. <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
  1576. <GradientStop Offset="0.05" Color="#ABADB3" />
  1577. <GradientStop Offset="0.07" Color="#E2E3EA" />
  1578. <GradientStop Offset="1" Color="#E3E9EF" />
  1579. </LinearGradientBrush>
  1580. <Style
  1581. x:Key="UserNameTextBoxStyle"
  1582. BasedOn="{x:Null}"
  1583. TargetType="{x:Type TextBox}">
  1584. <Setter Property="Foreground" Value="White" />
  1585. <Setter Property="Background" Value="Transparent" />
  1586. <Setter Property="Padding" Value="1" />
  1587. <Setter Property="CaretBrush" Value="Aqua" />
  1588. <Setter Property="Height" Value="40" />
  1589. <Setter Property="Width" Value="135" />
  1590. <Setter Property="HorizontalContentAlignment" Value="Center" />
  1591. <Setter Property="FontSize" Value="16" />
  1592. <Setter Property="HorizontalAlignment" Value="Left" />
  1593. <Setter Property="AllowDrop" Value="true" />
  1594. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1595. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1596. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1597. <Setter Property="Template">
  1598. <Setter.Value>
  1599. <ControlTemplate TargetType="{x:Type TextBox}">
  1600. <Border x:Name="Bd" VerticalAlignment="Center">
  1601. <Grid>
  1602. <ScrollViewer
  1603. x:Name="PART_ContentHost"
  1604. VerticalAlignment="Center"
  1605. HorizontalScrollBarVisibility="Hidden"
  1606. VerticalScrollBarVisibility="Hidden" />
  1607. <Path
  1608. x:Name="p1"
  1609. Stroke="#7720FDFA"
  1610. StrokeThickness="1">
  1611. <Path.Data>
  1612. <PathGeometry>
  1613. <PathFigure IsClosed="False" StartPoint="1, 1">
  1614. <LineSegment Point="133,1" />
  1615. <LineSegment Point="133,38" />
  1616. <LineSegment Point="1,38" />
  1617. <LineSegment Point="1,1" />
  1618. </PathFigure>
  1619. </PathGeometry>
  1620. </Path.Data>
  1621. </Path>
  1622. <Path
  1623. Name="p2"
  1624. Stroke="#aa20FDFA"
  1625. StrokeThickness="3">
  1626. <Path.Data>
  1627. <PathGeometry>
  1628. <PathFigure IsClosed="False" StartPoint="10, 1">
  1629. <LineSegment Point="1,1" />
  1630. <LineSegment Point="1,10" />
  1631. </PathFigure>
  1632. </PathGeometry>
  1633. </Path.Data>
  1634. </Path>
  1635. <Path
  1636. Name="p3"
  1637. Stroke="#aa20FDFA"
  1638. StrokeThickness="3">
  1639. <Path.Data>
  1640. <PathGeometry>
  1641. <PathFigure IsClosed="False" StartPoint="125, 1">
  1642. <LineSegment Point="133,1" />
  1643. <LineSegment Point="133,10" />
  1644. </PathFigure>
  1645. </PathGeometry>
  1646. </Path.Data>
  1647. </Path>
  1648. <Path
  1649. x:Name="p4"
  1650. Stroke="#aa20FDFA"
  1651. StrokeThickness="3">
  1652. <Path.Data>
  1653. <PathGeometry>
  1654. <PathFigure IsClosed="False" StartPoint="125, 38">
  1655. <LineSegment Point="133,38" />
  1656. <LineSegment Point="133,30" />
  1657. </PathFigure>
  1658. </PathGeometry>
  1659. </Path.Data>
  1660. </Path>
  1661. <Path
  1662. x:Name="p5"
  1663. Stroke="#aa20FDFA"
  1664. StrokeThickness="3">
  1665. <Path.Data>
  1666. <PathGeometry>
  1667. <PathFigure IsClosed="False" StartPoint="1, 30">
  1668. <LineSegment Point="1,38" />
  1669. <LineSegment Point="10,38" />
  1670. </PathFigure>
  1671. </PathGeometry>
  1672. </Path.Data>
  1673. </Path>
  1674. </Grid>
  1675. </Border>
  1676. <ControlTemplate.Triggers>
  1677. <Trigger Property="IsEnabled" Value="false">
  1678. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1679. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1680. </Trigger>
  1681. <Trigger Property="IsMouseOver" Value="true">
  1682. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1683. <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
  1684. <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
  1685. <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
  1686. <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
  1687. <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
  1688. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1689. </Trigger>
  1690. <Trigger Property="IsKeyboardFocused" Value="true">
  1691. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1692. <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
  1693. <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
  1694. <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
  1695. <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
  1696. <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
  1697. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1698. </Trigger>
  1699. </ControlTemplate.Triggers>
  1700. </ControlTemplate>
  1701. </Setter.Value>
  1702. </Setter>
  1703. <Style.Triggers>
  1704. <MultiTrigger>
  1705. <MultiTrigger.Conditions>
  1706. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1707. <Condition Property="IsSelectionActive" Value="false" />
  1708. </MultiTrigger.Conditions>
  1709. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1710. </MultiTrigger>
  1711. </Style.Triggers>
  1712. </Style>
  1713. <!--#endregion-->
  1714. <!--#region TextBlock-->
  1715. <Style x:Key="80号字体样式" TargetType="TextBlock">
  1716. <Setter Property="FontSize" Value="16" />
  1717. <Setter Property="TextWrapping" Value="Wrap" />
  1718. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;Component/Fonts/#zihun80hao-mengquxiaoyuti"/>
  1719. <Setter Property="Foreground" Value="#FFFCD5B5" />
  1720. </Style>
  1721. <Style TargetType="TextBlock">
  1722. <Style.Setters>
  1723. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1724. <Setter Property="HorizontalAlignment" Value="Left" />
  1725. <Setter Property="VerticalAlignment" Value="Center" />
  1726. <Setter Property="FontSize" Value="20" />
  1727. </Style.Setters>
  1728. </Style>
  1729. <Style x:Key="Title" TargetType="TextBlock">
  1730. <Setter Property="FontSize" Value="18" />
  1731. <Setter Property="Foreground" Value="#FF58C7EE" />
  1732. <Setter Property="VerticalAlignment" Value="Center" />
  1733. <Setter Property="HorizontalAlignment" Value="Center" />
  1734. </Style>
  1735. <Style x:Key="数码管Text" TargetType="TextBlock">
  1736. <Setter Property="FontFamily" Value="../Fonts/#Quartz M" />
  1737. <Setter Property="FontSize" Value="18" />
  1738. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1739. <Setter Property="VerticalAlignment" Value="Center" />
  1740. <Setter Property="HorizontalAlignment" Value="Center" />
  1741. </Style>
  1742. <!--#endregion-->
  1743. <!--#region GroupBox-->
  1744. <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
  1745. <Style TargetType="{x:Type GroupBox}">
  1746. <Setter Property="BorderThickness" Value="0" />
  1747. <Setter Property="Background" Value="Transparent" />
  1748. <Setter Property="Foreground" Value="{DynamicResource Titleforeground}" />
  1749. <Setter Property="Template">
  1750. <Setter.Value>
  1751. <ControlTemplate TargetType="{x:Type GroupBox}">
  1752. <Grid SnapsToDevicePixels="true">
  1753. <Grid.ColumnDefinitions>
  1754. <ColumnDefinition Width="6" />
  1755. <ColumnDefinition Width="Auto" />
  1756. <ColumnDefinition Width="*" />
  1757. <ColumnDefinition Width="6" />
  1758. </Grid.ColumnDefinitions>
  1759. <Grid.RowDefinitions>
  1760. <RowDefinition Height="Auto" />
  1761. <RowDefinition Height="Auto" />
  1762. <RowDefinition Height="*" />
  1763. <RowDefinition Height="6" />
  1764. </Grid.RowDefinitions>
  1765. <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
  1766. <Border
  1767. Grid.Row="2"
  1768. Grid.RowSpan="2"
  1769. Grid.ColumnSpan="4"
  1770. Margin="0,0,0,0"
  1771. BorderThickness="0"
  1772. CornerRadius="0" />
  1773. <Image
  1774. Grid.Row="0"
  1775. Grid.RowSpan="2"
  1776. Grid.Column="1"
  1777. Height="4"
  1778. Margin="0,5,0,0"
  1779. HorizontalAlignment="Left"
  1780. Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
  1781. <Border
  1782. x:Name="Header"
  1783. Grid.Row="0"
  1784. Grid.RowSpan="2"
  1785. Grid.Column="1"
  1786. Height="30"
  1787. Margin="30,0,0,0"
  1788. Padding="3,1,3,0">
  1789. <ContentPresenter
  1790. VerticalAlignment="Center"
  1791. ContentSource="Header"
  1792. RecognizesAccessKey="True"
  1793. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1794. </Border>
  1795. <ContentPresenter
  1796. Grid.Row="2"
  1797. Grid.Column="1"
  1798. Grid.ColumnSpan="2"
  1799. Margin="{TemplateBinding Padding}"
  1800. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1801. </Grid>
  1802. </ControlTemplate>
  1803. </Setter.Value>
  1804. </Setter>
  1805. </Style>
  1806. <!--#endregion-->
  1807. <!--#region 空MenuHeader-->
  1808. <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
  1809. <Setter Property="Height" Value="Auto" />
  1810. <Setter Property="Template">
  1811. <Setter.Value>
  1812. <ControlTemplate TargetType="{x:Type MenuItem}">
  1813. <Grid Margin="1">
  1814. <ContentPresenter
  1815. x:Name="Presenter"
  1816. Margin="{TemplateBinding Padding}"
  1817. ContentSource="Header" />
  1818. </Grid>
  1819. </ControlTemplate>
  1820. </Setter.Value>
  1821. </Setter>
  1822. </Style>
  1823. <!--#endregion-->
  1824. <!--#region dataGrid-->
  1825. <Style TargetType="DataGrid" x:Key="dataGrid_Style">
  1826. <!--网格线颜色-->
  1827. <Setter Property="CanUserResizeColumns" Value="false" />
  1828. <Setter Property="Background" Value="Transparent" />
  1829. <Setter Property="BorderBrush" Value="#a2c2e8" />
  1830. <Setter Property="HorizontalGridLinesBrush">
  1831. <Setter.Value>
  1832. <SolidColorBrush Color="#a2c2e8" />
  1833. </Setter.Value>
  1834. </Setter>
  1835. <Setter Property="VerticalGridLinesBrush">
  1836. <Setter.Value>
  1837. <SolidColorBrush Color="#a2c2e8" />
  1838. </Setter.Value>
  1839. </Setter>
  1840. </Style>
  1841. <!--#region dataGridRow-->
  1842. <Style x:Key="DatagridRow_Style" TargetType="DataGridRow">
  1843. <Setter Property="Background" Value="#3afdff" />
  1844. <Setter Property="Foreground" Value="White" />
  1845. <Setter Property="Height" Value="20"/>
  1846. <Style.Triggers>
  1847. <!-- 隔行换色 -->
  1848. <Trigger Property="AlternationIndex" Value="0">
  1849. <Setter Property="Background" Value="#FFFAFAFA" />
  1850. </Trigger>
  1851. <Trigger Property="AlternationIndex" Value="1">
  1852. <Setter Property="Background" Value="#FFF5F5F7" />
  1853. </Trigger>
  1854. <Trigger Property="IsMouseOver" Value="True">
  1855. <Setter Property="Background" Value="#4fade8" />
  1856. </Trigger>
  1857. <Trigger Property="IsSelected" Value="True">
  1858. <Setter Property="Background" Value="#4fade8" />
  1859. <Setter Property="Foreground" Value="#FF111111" />
  1860. </Trigger>
  1861. </Style.Triggers>
  1862. </Style>
  1863. <!--#endregion-->
  1864. <!--#region dataGridHeader-->
  1865. <Style TargetType="DataGridColumnHeader" x:Key="dataGridHeader_Style">
  1866. <Setter Property="SnapsToDevicePixels" Value="True" />
  1867. <Setter Property="MinWidth" Value="0" />
  1868. <Setter Property="MinHeight" Value="30" />
  1869. <Setter Property="Foreground" Value="White" />
  1870. <Setter Property="FontSize" Value="18" />
  1871. <Setter Property="Cursor" Value="Hand" />
  1872. <Setter Property="Template">
  1873. <Setter.Value>
  1874. <ControlTemplate TargetType="DataGridColumnHeader">
  1875. <Border x:Name="BackgroundBorder" BorderThickness="0,1,0,1"
  1876. BorderBrush="#e6dbba"
  1877. Width="Auto">
  1878. <Grid>
  1879. <Grid.ColumnDefinitions>
  1880. <ColumnDefinition Width="*" />
  1881. </Grid.ColumnDefinitions>
  1882. <ContentPresenter Margin="0,0,0,0" VerticalAlignment="Center"
  1883. HorizontalAlignment="Center" />
  1884. <Path x:Name="SortArrow" Visibility="Collapsed" Data="M0,0 L1,0 0.5,1 z" Stretch="Fill"
  1885. Grid.Column="0" Width="8" Height="6" Fill="White" Margin="0,0,50,0"
  1886. VerticalAlignment="Center" RenderTransformOrigin="1,1" />
  1887. <Rectangle Width="1" Fill="#d6c79b" HorizontalAlignment="Right" Grid.ColumnSpan="1" />
  1888. </Grid>
  1889. </Border>
  1890. </ControlTemplate>
  1891. </Setter.Value>
  1892. </Setter>
  1893. <Setter Property="Height" Value="25" />
  1894. </Style>
  1895. <!--#endregion-->
  1896. <!--#region dataGridCell-->
  1897. <Style TargetType="DataGridCell" x:Key="dataGridCell_Style">
  1898. <Setter Property="Height" Value="20"/>
  1899. <Setter Property="FontSize" Value="14"/>
  1900. <Style.Triggers>
  1901. <Trigger Property="IsSelected" Value="True">
  1902. <Setter Property="Background" Value="White" />
  1903. <Setter Property="BorderThickness" Value="0" />
  1904. <Setter Property="Foreground" Value="Black" />
  1905. </Trigger>
  1906. </Style.Triggers>
  1907. </Style>
  1908. <!--#endregion-->
  1909. <!--#endregion-->
  1910. </ResourceDictionary>