终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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