终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

MyStyle.xaml 99 KiB

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