Generic.xaml 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:converters="clr-namespace:Venus_Themes.Converters"
  4. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls"
  5. xmlns:userControls="clr-namespace:Venus_Themes.UserControls"
  6. >
  7. <converters:BoolToDirection x:Key="boolToDirection"/>
  8. <converters:BoolToBool x:Key="BoolToBool"/>
  9. <SolidColorBrush x:Key="robotBorderBrush" Color="#030303" />
  10. <LinearGradientBrush x:Key="RobotBrush" StartPoint="0,0" EndPoint="1,0">
  11. <LinearGradientBrush.GradientStops>
  12. <GradientStop Color="Silver" Offset="0"/>
  13. <GradientStop Color="White" Offset="0.9"/>
  14. <GradientStop Color="Silver" Offset="1"/>
  15. </LinearGradientBrush.GradientStops>
  16. </LinearGradientBrush>
  17. <LinearGradientBrush x:Key="RobotBrush2" StartPoint="0,0" EndPoint="1,0">
  18. <LinearGradientBrush.GradientStops>
  19. <GradientStop Color="Gray" Offset="0"/>
  20. <GradientStop Color="White" Offset="0.9"/>
  21. <GradientStop Color="Gray" Offset="1"/>
  22. </LinearGradientBrush.GradientStops>
  23. </LinearGradientBrush>
  24. <Style TargetType="{x:Type customControls:WaferRobotControl}" >
  25. <Setter Property="Cursor" Value="Hand" />
  26. <Setter Property="Width" Value="200"/>
  27. <Setter Property="Height" Value="250"/>
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="{x:Type customControls:WaferRobotControl}">
  31. <Viewbox x:Name="viewbox" Stretch="Fill">
  32. <VisualStateManager.VisualStateGroups>
  33. <VisualStateGroup Name="RobotXActions">
  34. <VisualStateGroup.Transitions>
  35. <VisualTransition To="Extend">
  36. <Storyboard FillBehavior="HoldEnd" SpeedRatio="6">
  37. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  38. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  39. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  40. </DoubleAnimationUsingKeyFrames>
  41. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  42. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  43. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  44. </DoubleAnimationUsingKeyFrames>
  45. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  46. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  47. <LinearDoubleKeyFrame Value="2.126" KeyTime="0:0:8"/>
  48. <LinearDoubleKeyFrame Value="8.443" KeyTime="0:0:7"/>
  49. <LinearDoubleKeyFrame Value="18.756" KeyTime="0:0:6"/>
  50. <LinearDoubleKeyFrame Value="32.753" KeyTime="0:0:5"/>
  51. <LinearDoubleKeyFrame Value="50.009" KeyTime="0:0:4"/>
  52. <LinearDoubleKeyFrame Value="70" KeyTime="0:0:3"/>
  53. <LinearDoubleKeyFrame Value="92.117" KeyTime="0:0:2"/>
  54. <LinearDoubleKeyFrame Value="115.689" KeyTime="0:0:1"/>
  55. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  56. </DoubleAnimationUsingKeyFrames>
  57. </Storyboard>
  58. </VisualTransition>
  59. <VisualTransition To="Retract">
  60. <Storyboard FillBehavior="HoldEnd" SpeedRatio="6">
  61. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  62. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  63. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
  64. </DoubleAnimationUsingKeyFrames>
  65. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  66. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  67. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:9"/>
  68. </DoubleAnimationUsingKeyFrames>
  69. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  70. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  71. <LinearDoubleKeyFrame Value="2.126" KeyTime="0:0:1"/>
  72. <LinearDoubleKeyFrame Value="8.443" KeyTime="0:0:2"/>
  73. <LinearDoubleKeyFrame Value="18.756" KeyTime="0:0:3"/>
  74. <LinearDoubleKeyFrame Value="32.753" KeyTime="0:0:4"/>
  75. <LinearDoubleKeyFrame Value="50.009" KeyTime="0:0:5"/>
  76. <LinearDoubleKeyFrame Value="70" KeyTime="0:0:6"/>
  77. <LinearDoubleKeyFrame Value="92.117" KeyTime="0:0:7"/>
  78. <LinearDoubleKeyFrame Value="115.689" KeyTime="0:0:8"/>
  79. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:9"/>
  80. </DoubleAnimationUsingKeyFrames>
  81. </Storyboard>
  82. </VisualTransition>
  83. </VisualStateGroup.Transitions>
  84. <VisualState Name="X_Origin">
  85. <Storyboard FillBehavior="HoldEnd">
  86. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  87. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  88. </DoubleAnimationUsingKeyFrames>
  89. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  90. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  91. </DoubleAnimationUsingKeyFrames>
  92. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  93. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  94. </DoubleAnimationUsingKeyFrames>
  95. </Storyboard>
  96. </VisualState>
  97. <VisualState Name="Extend">
  98. <Storyboard FillBehavior="HoldEnd">
  99. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  100. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  101. </DoubleAnimationUsingKeyFrames>
  102. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  103. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  104. </DoubleAnimationUsingKeyFrames>
  105. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  106. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  107. </DoubleAnimationUsingKeyFrames>
  108. </Storyboard>
  109. </VisualState>
  110. <VisualState Name="Retract">
  111. <Storyboard FillBehavior="HoldEnd">
  112. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  113. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  114. </DoubleAnimationUsingKeyFrames>
  115. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  116. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  117. </DoubleAnimationUsingKeyFrames>
  118. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  119. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  120. </DoubleAnimationUsingKeyFrames>
  121. </Storyboard>
  122. </VisualState>
  123. </VisualStateGroup>
  124. <VisualStateGroup Name="RobotTActions">
  125. <VisualStateGroup.Transitions>
  126. <VisualTransition To="T_Origin">
  127. <Storyboard FillBehavior="HoldEnd">
  128. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  129. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:1"/>
  130. </DoubleAnimationUsingKeyFrames>
  131. </Storyboard>
  132. </VisualTransition>
  133. <VisualTransition To="PMA">
  134. <Storyboard FillBehavior="HoldEnd">
  135. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  136. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:1"/>
  137. </DoubleAnimationUsingKeyFrames>
  138. </Storyboard>
  139. </VisualTransition>
  140. <VisualTransition To="PMB">
  141. <Storyboard FillBehavior="HoldEnd">
  142. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  143. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:1"/>
  144. </DoubleAnimationUsingKeyFrames>
  145. </Storyboard>
  146. </VisualTransition>
  147. <VisualTransition To="PMC">
  148. <Storyboard FillBehavior="HoldEnd">
  149. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  150. <LinearDoubleKeyFrame Value="120" KeyTime="0:0:1"/>
  151. </DoubleAnimationUsingKeyFrames>
  152. </Storyboard>
  153. </VisualTransition>
  154. <VisualTransition To="PMD">
  155. <Storyboard FillBehavior="HoldEnd">
  156. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  157. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:1"/>
  158. </DoubleAnimationUsingKeyFrames>
  159. </Storyboard>
  160. </VisualTransition>
  161. <VisualTransition To="LLA">
  162. <Storyboard FillBehavior="HoldEnd">
  163. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  164. <LinearDoubleKeyFrame Value="-65" KeyTime="0:0:1"/>
  165. </DoubleAnimationUsingKeyFrames>
  166. </Storyboard>
  167. </VisualTransition>
  168. <VisualTransition To="LLB">
  169. <Storyboard FillBehavior="HoldEnd">
  170. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  171. <LinearDoubleKeyFrame Value="-115" KeyTime="0:0:1"/>
  172. </DoubleAnimationUsingKeyFrames>
  173. </Storyboard>
  174. </VisualTransition>
  175. </VisualStateGroup.Transitions>
  176. <VisualState Name="T_Origin">
  177. <Storyboard FillBehavior="HoldEnd">
  178. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  179. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  180. </DoubleAnimationUsingKeyFrames>
  181. </Storyboard>
  182. </VisualState>
  183. <VisualState Name="PMA">
  184. <Storyboard FillBehavior="HoldEnd">
  185. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  186. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  187. </DoubleAnimationUsingKeyFrames>
  188. </Storyboard>
  189. </VisualState>
  190. <VisualState Name="PMB">
  191. <Storyboard FillBehavior="HoldEnd">
  192. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  193. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:0"/>
  194. </DoubleAnimationUsingKeyFrames>
  195. </Storyboard>
  196. </VisualState>
  197. <VisualState Name="PMC">
  198. <Storyboard FillBehavior="HoldEnd">
  199. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  200. <LinearDoubleKeyFrame Value="120" KeyTime="0:0:0"/>
  201. </DoubleAnimationUsingKeyFrames>
  202. </Storyboard>
  203. </VisualState>
  204. <VisualState Name="PMD">
  205. <Storyboard FillBehavior="HoldEnd">
  206. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  207. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  208. </DoubleAnimationUsingKeyFrames>
  209. </Storyboard>
  210. </VisualState>
  211. <VisualState Name="LLA">
  212. <Storyboard FillBehavior="HoldEnd">
  213. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  214. <LinearDoubleKeyFrame Value="-65" KeyTime="0:0:0"/>
  215. </DoubleAnimationUsingKeyFrames>
  216. </Storyboard>
  217. </VisualState>
  218. <VisualState Name="LLB">
  219. <Storyboard FillBehavior="HoldEnd">
  220. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  221. <LinearDoubleKeyFrame Value="-115" KeyTime="0:0:0"/>
  222. </DoubleAnimationUsingKeyFrames>
  223. </Storyboard>
  224. </VisualState>
  225. </VisualStateGroup>
  226. </VisualStateManager.VisualStateGroups>
  227. <Canvas Width="200" Height="300" >
  228. <Canvas x:Name="robot" Width="100" Height="150" RenderTransformOrigin="1 1" >
  229. <Canvas.RenderTransform>
  230. <TransformGroup>
  231. <RotateTransform x:Name="robotRotateAct"/>
  232. <!--<TranslateTransform x:Name="robotUpDownAct"></TranslateTransform>-->
  233. </TransformGroup>
  234. </Canvas.RenderTransform>
  235. <Canvas x:Name="armXT1" Width="200" Height="100" Canvas.Top="100" RenderTransformOrigin="0.5 0.5">
  236. <Canvas.RenderTransform>
  237. <RotateTransform x:Name="armXT1RotateAct"/>
  238. </Canvas.RenderTransform>
  239. <Canvas x:Name="armXT1Arm" Width="70" Height="30" Canvas.Left="30" Canvas.Top="35" RenderTransformOrigin="1 0.5" ToolTip="后臂">
  240. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  241. <Path.Data>
  242. <PathGeometry>
  243. <PathFigure StartPoint="0 5" IsClosed="True">
  244. <LineSegment Point="51 0"/>
  245. <LineSegment Point="51 30" IsStroked="False"/>
  246. <LineSegment Point="0 25"/>
  247. <LineSegment Point="0 5" IsStroked="False"/>
  248. </PathFigure>
  249. </PathGeometry>
  250. </Path.Data>
  251. </Path>
  252. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="0"
  253. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="{StaticResource RobotBrush}"
  254. Data="M 0,5 A 10,10 0 0 0 0,25">
  255. </Path>
  256. </Canvas>
  257. <Canvas x:Name="armXT1Center" Width="40" Height="40" Canvas.Left="80" Canvas.Top="30" ToolTip="底座">
  258. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  259. <Path.Data>
  260. <PathGeometry>
  261. <PathFigure StartPoint="0 6" IsClosed="True">
  262. <LineSegment Point="6 0"/>
  263. <LineSegment Point="34 0"/>
  264. <LineSegment Point="40 6"/>
  265. <LineSegment Point="40 34"/>
  266. <LineSegment Point="34 40"/>
  267. <LineSegment Point="6 40"/>
  268. <LineSegment Point="0 34"/>
  269. </PathFigure>
  270. </PathGeometry>
  271. </Path.Data>
  272. </Path>
  273. <!--<Ellipse Width="40" Height="40" Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round"></Ellipse>-->
  274. </Canvas>
  275. </Canvas>
  276. <Canvas x:Name="armXT2" Width="120" Height="40" Canvas.Left="-90" Canvas.Top="130">
  277. <Canvas.RenderTransform>
  278. <TransformGroup>
  279. <TranslateTransform x:Name="armXT2Act"></TranslateTransform>
  280. </TransformGroup>
  281. </Canvas.RenderTransform>
  282. <Canvas x:Name="armXT2Arm" Width="70" Height="20" Canvas.Left="50" Canvas.Top="10" RenderTransformOrigin="0 0.5" Background="#6495ED" ToolTip="前臂">
  283. <Canvas.RenderTransform>
  284. <RotateTransform x:Name="armXT2ArmRotateAct"/>
  285. </Canvas.RenderTransform>
  286. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="70"
  287. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="WhiteSmoke"
  288. Data="M 0,0 A 10,10 0 0 1 0,20">
  289. </Path>
  290. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="0"
  291. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="{StaticResource RobotBrush}"
  292. Data="M 0,0 A 10,10 0 0 0 0,20">
  293. </Path>
  294. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  295. <Path.Data>
  296. <PathGeometry>
  297. <PathFigure StartPoint="70 0" >
  298. <LineSegment Point="0 0" />
  299. <LineSegment Point="0 20" IsStroked="False"/>
  300. <LineSegment Point="70 20"/>
  301. <LineSegment Point="70 0" IsStroked="False"/>
  302. </PathFigure>
  303. </PathGeometry>
  304. </Path.Data>
  305. </Path>
  306. <Ellipse Width="12" Height="12" Stroke="#030303" StrokeThickness="2" Fill="Transparent"
  307. Canvas.Top="4" Canvas.Left="62"/>
  308. </Canvas>
  309. <Canvas x:Name="armGripper" Height="40" Width="50" Canvas.Left="0" Canvas.Top="0">
  310. <Path Data="M 30 10 30 30 -20 25 -20 15 30 10z" Stroke="Black" Fill="{StaticResource RobotBrush2}" StrokeThickness="1" StrokeEndLineCap="Round">
  311. <!--<Path.Data>
  312. <PathGeometry>
  313. -->
  314. <!--<PathFigure StartPoint="30 14" >
  315. <LineSegment Point="10 14" />
  316. <LineSegment Point="4 8" />
  317. <LineSegment Point="-6 8" />
  318. </PathFigure>
  319. <PathFigure StartPoint="30 26" >
  320. <LineSegment Point="10 26" />
  321. <LineSegment Point="4 32" />
  322. <LineSegment Point="-6 32" />
  323. </PathFigure>-->
  324. <!--
  325. <PathFigure StartPoint="30 10" >
  326. <LineSegment Point="30 30" />
  327. <LineSegment Point="-20 25" />
  328. <LineSegment Point="-20 15" />
  329. <LineSegment Point="30 10" />
  330. </PathFigure>
  331. </PathGeometry>
  332. </Path.Data>-->
  333. </Path>
  334. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  335. <Path.Data>
  336. <PathGeometry>
  337. <PathFigure StartPoint="40 0" >
  338. <LineSegment Point="60 0" />
  339. <LineSegment Point="60 40" />
  340. <LineSegment Point="40 40" />
  341. <LineSegment Point="30 30" />
  342. <LineSegment Point="30 10" />
  343. <LineSegment Point="40 0" />
  344. </PathFigure>
  345. </PathGeometry>
  346. </Path.Data>
  347. </Path>
  348. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  349. <Path.Data>
  350. <PathGeometry>
  351. <PathFigure StartPoint="30 10" >
  352. <LineSegment Point="20 10" />
  353. <LineSegment Point="20 30" />
  354. <LineSegment Point="30 30" />
  355. <LineSegment Point="30 10" IsStroked="False"/>
  356. </PathFigure>
  357. </PathGeometry>
  358. </Path.Data>
  359. </Path>
  360. <Ellipse Width="12" Height="12" Stroke="#030303" StrokeThickness="2" Fill="Transparent"
  361. Canvas.Top="14" Canvas.Left="44"/>
  362. <Viewbox Canvas.Left="-64" Canvas.Top="-21" Width="85" Height="85">
  363. <userControls:WaferCtrl WaferData="{Binding RobotWafer,RelativeSource={RelativeSource TemplatedParent}}"/>
  364. </Viewbox>
  365. </Canvas>
  366. </Canvas>
  367. </Canvas>
  368. </Canvas>
  369. </Viewbox>
  370. </ControlTemplate>
  371. </Setter.Value>
  372. </Setter>
  373. </Style>
  374. <Style TargetType="{x:Type customControls:CommonValveControl}">
  375. <Setter Property="Template">
  376. <Setter.Value>
  377. <ControlTemplate TargetType="{x:Type customControls:CommonValveControl}">
  378. <Viewbox Stretch="Fill">
  379. <Grid x:Name="mainBody">
  380. <Canvas Width="40" Height="40">
  381. <Ellipse Height="40" Width="40" Fill="Gray"/>
  382. <Ellipse x:Name="InnerEllipse" Height="30" Width="30" Canvas.Left="5" Canvas.Top="5" />
  383. <Rectangle x:Name="Rectangle" Fill="White" RadiusX="2" RadiusY="2"/>
  384. </Canvas>
  385. </Grid>
  386. </Viewbox>
  387. <ControlTemplate.Triggers>
  388. <Trigger Property="IsCanEdit" Value="True">
  389. <Setter Property="Cursor" Value="Hand" />
  390. </Trigger>
  391. <Trigger Property="Status" Value="false">
  392. <Setter TargetName="InnerEllipse" Property="Fill" Value="Silver"/>
  393. </Trigger>
  394. <Trigger Property="Status" Value="true">
  395. <Setter TargetName="InnerEllipse" Property="Fill" Value="Green"/>
  396. </Trigger>
  397. <MultiTrigger>
  398. <MultiTrigger.Conditions>
  399. <Condition Property="ValveOrientation" Value="Horizontal"/>
  400. <Condition Property="Status" Value="false"/>
  401. </MultiTrigger.Conditions>
  402. <Setter TargetName="Rectangle" Property="Width" Value="6"/>
  403. <Setter TargetName="Rectangle" Property="Height" Value="30"/>
  404. <Setter TargetName="Rectangle" Property="Canvas.Left" Value="17"/>
  405. <Setter TargetName="Rectangle" Property="Canvas.Top" Value="5"/>
  406. </MultiTrigger>
  407. <MultiTrigger>
  408. <MultiTrigger.Conditions>
  409. <Condition Property="ValveOrientation" Value="Horizontal"/>
  410. <Condition Property="Status" Value="true"/>
  411. </MultiTrigger.Conditions>
  412. <Setter TargetName="Rectangle" Property="Width" Value="30"/>
  413. <Setter TargetName="Rectangle" Property="Height" Value="6"/>
  414. <Setter TargetName="Rectangle" Property="Canvas.Left" Value="5"/>
  415. <Setter TargetName="Rectangle" Property="Canvas.Top" Value="17"/>
  416. </MultiTrigger>
  417. <MultiTrigger>
  418. <MultiTrigger.Conditions>
  419. <Condition Property="ValveOrientation" Value="Vertical"/>
  420. <Condition Property="Status" Value="false"/>
  421. </MultiTrigger.Conditions>
  422. <Setter TargetName="Rectangle" Property="Width" Value="30"/>
  423. <Setter TargetName="Rectangle" Property="Height" Value="6"/>
  424. <Setter TargetName="Rectangle" Property="Canvas.Left" Value="5"/>
  425. <Setter TargetName="Rectangle" Property="Canvas.Top" Value="17"/>
  426. </MultiTrigger>
  427. <MultiTrigger>
  428. <MultiTrigger.Conditions>
  429. <Condition Property="ValveOrientation" Value="Vertical"/>
  430. <Condition Property="Status" Value="true"/>
  431. </MultiTrigger.Conditions>
  432. <Setter TargetName="Rectangle" Property="Width" Value="6"/>
  433. <Setter TargetName="Rectangle" Property="Height" Value="30"/>
  434. <Setter TargetName="Rectangle" Property="Canvas.Left" Value="17"/>
  435. <Setter TargetName="Rectangle" Property="Canvas.Top" Value="5"/>
  436. </MultiTrigger>
  437. </ControlTemplate.Triggers>
  438. </ControlTemplate>
  439. </Setter.Value>
  440. </Setter>
  441. </Style>
  442. <Style x:Key="textBlockStyle" TargetType="TextBlock">
  443. <!--字体渐变-->
  444. <Setter Property="Foreground">
  445. <Setter.Value>
  446. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,0.5">
  447. <GradientStop Color="#FFFFE787" Offset="0.0" />
  448. <GradientStop Color="#FFFFE787" Offset="0.25" />
  449. <GradientStop Color="White" Offset="0.5" />
  450. </LinearGradientBrush>
  451. </Setter.Value>
  452. </Setter>
  453. <!--字体阴影-->
  454. <Setter Property="Effect">
  455. <Setter.Value>
  456. <DropShadowEffect Color="Black" Direction="120" ShadowDepth="1" Opacity="0.7" />
  457. </Setter.Value>
  458. </Setter>
  459. <Setter Property="FontFamily" Value="Microsoft YaHei"/>
  460. <Setter Property="FontWeight" Value="Bold"/>
  461. </Style>
  462. <Style x:Key="TopLable_LeftTop" TargetType="{x:Type Label}">
  463. <Setter Property="FontFamily" Value="Arial"/>
  464. <Setter Property="FontSize" Value="16"/>
  465. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  466. <Setter Property="BorderBrush" Value="{DynamicResource TopFrame_TableBD_Highlight}"/>
  467. <Setter Property="BorderThickness" Value="1"/>
  468. <Setter Property="Background" Value="{DynamicResource TopFrame_TableBG}"/>
  469. <!--<Setter Property="Margin" Value="1,1,0,1"/>-->
  470. <Setter Property="Padding" Value="5,2"/>
  471. <Setter Property="Border.CornerRadius" Value="6,0,0,6"/>
  472. <Setter Property="SnapsToDevicePixels" Value="True"/>
  473. <Setter Property="HorizontalAlignment" Value="Stretch"/>
  474. <Setter Property="VerticalAlignment" Value="Stretch"/>
  475. <Setter Property="Template">
  476. <Setter.Value>
  477. <ControlTemplate TargetType="Label">
  478. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding Border.CornerRadius}" Margin="{TemplateBinding Margin}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
  479. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  480. </Border>
  481. </ControlTemplate>
  482. </Setter.Value>
  483. </Setter>
  484. </Style>
  485. <Style x:Key="TextBox_Top" TargetType="{x:Type TextBox}">
  486. <Setter Property="SnapsToDevicePixels" Value="True"/>
  487. <Setter Property="FontFamily" Value="Arial" />
  488. <Setter Property="FontSize" Value="24" />
  489. <!--<Setter Property="Margin" Value="0,2,2,2"/>-->
  490. <Setter Property="BorderThickness" Value="0,1,1,1"/>
  491. <Setter Property="Background" Value="{DynamicResource TextBox_Top_BG}" />
  492. <Setter Property="Foreground" Value="{DynamicResource Foreground_Black}" />
  493. <Setter Property="BorderBrush" Value="{DynamicResource TextBox_Top_Highlight_Right}"/>
  494. <Setter Property="Border.CornerRadius" Value="0,6,6,0"/>
  495. <Setter Property="HorizontalAlignment" Value="Stretch"/>
  496. <Setter Property="VerticalAlignment" Value="Stretch"/>
  497. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  498. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  499. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  500. <Setter Property="Template">
  501. <Setter.Value>
  502. <ControlTemplate TargetType="{x:Type TextBox}">
  503. <Grid>
  504. <Border x:Name="TextBox_Bg" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}"
  505. BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
  506. <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="5,1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
  507. </Border>
  508. </Grid>
  509. <ControlTemplate.Triggers>
  510. <Trigger Property="IsEnabled" Value="false">
  511. <Setter Property="Background" TargetName="TextBox_Bg" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
  512. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  513. </Trigger>
  514. </ControlTemplate.Triggers>
  515. </ControlTemplate>
  516. </Setter.Value>
  517. </Setter>
  518. </Style>
  519. <Geometry x:Key="Icon_PMA">M793.1 958H229.4C155 958 94.5 897.5 94.5 823.2V557.6c0-74.4 60.5-134.8 134.9-134.8h563.8c74.4 0 134.9 60.5 134.9 134.8v265.6c-0.1 74.3-60.6 134.8-135 134.8zM229.4 512.6c-24.8 0-45 20.2-45 45v265.6c0 24.8 20.2 45 45 45h563.8c24.8 0 45-20.2 45-45V557.6c0-24.8-20.2-45-45-45H229.4z M773.3 512.6H249.2c-24.8 0-44.9-20.1-44.9-44.9V194.3c0-74.2 60.4-134.6 134.6-134.6h344.7c74.2 0 134.6 60.4 134.6 134.6v273.4c0 24.8-20.1 44.9-44.9 44.9z m-479.2-89.8h434.3V194.3c0-24.7-20.1-44.8-44.8-44.8H338.9c-24.7 0-44.8 20.1-44.8 44.8v228.5z M408.9 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9 24.8 0 44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9zM612.7 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9z</Geometry>
  520. <Geometry x:Key="Icon_PMB">M793.1 958H229.4C155 958 94.5 897.5 94.5 823.2V557.6c0-74.4 60.5-134.8 134.9-134.8h563.8c74.4 0 134.9 60.5 134.9 134.8v265.6c-0.1 74.3-60.6 134.8-135 134.8zM229.4 512.6c-24.8 0-45 20.2-45 45v265.6c0 24.8 20.2 45 45 45h563.8c24.8 0 45-20.2 45-45V557.6c0-24.8-20.2-45-45-45H229.4z M773.3 512.6H249.2c-24.8 0-44.9-20.1-44.9-44.9V194.3c0-74.2 60.4-134.6 134.6-134.6h344.7c74.2 0 134.6 60.4 134.6 134.6v273.4c0 24.8-20.1 44.9-44.9 44.9z m-479.2-89.8h434.3V194.3c0-24.7-20.1-44.8-44.8-44.8H338.9c-24.7 0-44.8 20.1-44.8 44.8v228.5z M408.9 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9 24.8 0 44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9zM612.7 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9z</Geometry>
  521. <Geometry x:Key="Icon_PMC">M793.1 958H229.4C155 958 94.5 897.5 94.5 823.2V557.6c0-74.4 60.5-134.8 134.9-134.8h563.8c74.4 0 134.9 60.5 134.9 134.8v265.6c-0.1 74.3-60.6 134.8-135 134.8zM229.4 512.6c-24.8 0-45 20.2-45 45v265.6c0 24.8 20.2 45 45 45h563.8c24.8 0 45-20.2 45-45V557.6c0-24.8-20.2-45-45-45H229.4z M773.3 512.6H249.2c-24.8 0-44.9-20.1-44.9-44.9V194.3c0-74.2 60.4-134.6 134.6-134.6h344.7c74.2 0 134.6 60.4 134.6 134.6v273.4c0 24.8-20.1 44.9-44.9 44.9z m-479.2-89.8h434.3V194.3c0-24.7-20.1-44.8-44.8-44.8H338.9c-24.7 0-44.8 20.1-44.8 44.8v228.5z M408.9 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9 24.8 0 44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9zM612.7 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9z</Geometry>
  522. <Geometry x:Key="Icon_PMD">M793.1 958H229.4C155 958 94.5 897.5 94.5 823.2V557.6c0-74.4 60.5-134.8 134.9-134.8h563.8c74.4 0 134.9 60.5 134.9 134.8v265.6c-0.1 74.3-60.6 134.8-135 134.8zM229.4 512.6c-24.8 0-45 20.2-45 45v265.6c0 24.8 20.2 45 45 45h563.8c24.8 0 45-20.2 45-45V557.6c0-24.8-20.2-45-45-45H229.4z M773.3 512.6H249.2c-24.8 0-44.9-20.1-44.9-44.9V194.3c0-74.2 60.4-134.6 134.6-134.6h344.7c74.2 0 134.6 60.4 134.6 134.6v273.4c0 24.8-20.1 44.9-44.9 44.9z m-479.2-89.8h434.3V194.3c0-24.7-20.1-44.8-44.8-44.8H338.9c-24.7 0-44.8 20.1-44.8 44.8v228.5z M408.9 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9 24.8 0 44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9zM612.7 354.7c-24.8 0-44.9-20.1-44.9-44.9v-48.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9v48.9c0 24.8-20.1 44.9-44.9 44.9z</Geometry>
  523. <Geometry x:Key="Icon_Operation">M823.466667 512H578.133333v-187.733333c0-66.133333-53.333333-119.466667-117.333333-119.466667s-117.333333 53.333333-117.333333 119.466667v296.533333l-21.333334-21.333333c-46.933333-46.933333-121.6-46.933333-168.533333-2.133334s-44.8 121.6 2.133333 168.533334l174.933334 174.933333c6.4 6.4 14.933333 8.533333 23.466666 8.533333 8.533333 0 17.066667-2.133333 23.466667-8.533333 12.8-12.8 12.8-32 0-44.8l-174.933333-174.933333c-21.333333-21.333333-23.466667-57.6-2.133334-76.8 21.333333-21.333333 55.466667-19.2 76.8 2.133333l74.666667 74.666667c12.8 12.8 32 12.8 44.8 0 6.4-6.4 8.533333-14.933333 8.533333-23.466667V326.4c0-29.866667 23.466667-55.466667 53.333334-55.466667s53.333333 25.6 53.333333 55.466667v219.733333c0 17.066667 14.933333 32 32 32h277.333333c6.4 0 10.666667 6.4 10.666667 12.8V917.333333c0 17.066667 14.933333 32 32 32S896 934.4 896 917.333333V586.666667c2.133333-40.533333-32-74.666667-72.533333-74.666667z M266.666667 330.666667c17.066667 0 32-14.933333 32-32 0-87.466667 72.533333-160 160-160S618.666667 211.2 618.666667 298.666667c0 17.066667 14.933333 32 32 32S682.666667 315.733333 682.666667 298.666667c0-123.733333-100.266667-224-224-224S234.666667 174.933333 234.666667 298.666667c0 17.066667 14.933333 32 32 32z</Geometry>
  524. <Geometry x:Key="Icon_Configuration">M384 960H224c-52.906667 0-96-43.093333-96-96V160c0-52.906667 43.093333-96 96-96h576c52.906667 0 96 43.093333 96 96v224c0 17.706667-14.293333 32-32 32s-32-14.293333-32-32V160c0-17.706667-14.4-32-32-32H224c-17.706667 0-32 14.293333-32 32v704c0 17.6 14.293333 32 32 32h160c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32z M694.293333 701.866667m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z M755.626667 963.626667l-13.226667-10.666667c-10.56-8.533333-28.16-18.666667-51.626667-18.666667-18.133333 0-35.626667 6.186667-50.56 17.813334l-13.546666 10.453333-16.213334-5.333333c-36.693333-12.053333-71.146667-32.64-99.733333-59.52L498.88 886.4l2.24-16.32c2.56-18.773333-0.853333-37.013333-9.92-52.693333-8.853333-15.36-22.4-27.2-39.253333-34.346667l-15.253334-6.4-3.52-16.213333c-4.053333-18.773333-6.186667-37.76-6.186666-56.32 0-20.373333 2.453333-40.96 7.146666-61.226667l3.733334-15.893333 15.04-6.293334c17.066667-7.146667 30.72-19.093333 39.573333-34.453333 8.746667-15.146667 12.266667-32.64 10.24-50.666667l-1.813333-16.106666 11.946666-10.986667c29.226667-26.986667 64.426667-47.36 101.866667-58.88l15.786667-4.906667 13.013333 10.026667c29.653333 22.506667 70.293333 22.506667 99.84 0l13.013333-10.026667 15.786667 4.906667c37.546667 11.626667 71.466667 31.146667 100.906667 58.026667l12.48 11.413333-2.346667 16.746667c-2.666667 18.88 0.64 37.226667 9.92 53.013333 11.52 19.946667 28.693333 30.08 41.173333 35.093333l15.573334 6.293334L953.6 646.4c4.266667 19.2 6.4 38.613333 6.4 57.6 0 18.986667-2.133333 38.186667-6.293333 57.28l-3.733334 16.853333-16.106666 6.186667c-18.346667 7.04-32.96 19.306667-42.346667 35.52-11.52 20.053333-11.626667 40.106667-9.706667 53.546667l2.56 16.96-12.8 11.52c-29.013333 26.133333-62.613333 45.226667-99.84 56.64l-16.106666 5.12z m-64.853334-93.333334c27.306667 0 53.546667 7.573333 76.693334 22.08 17.813333-7.04 34.453333-16.426667 49.6-28.16-0.746667-26.986667 5.76-53.12 19.2-76.373333 13.76-23.68 33.493333-42.666667 57.706666-55.466667 1.386667-9.493333 2.026667-18.986667 2.026667-28.266666 0-9.386667-0.746667-19.093333-2.133333-28.8-23.573333-12.906667-42.88-31.573333-56.213334-54.72-13.333333-23.146667-19.84-49.066667-19.2-75.733334-15.573333-12.373333-32.746667-22.186667-50.986666-29.333333-45.12 26.666667-102.613333 26.666667-147.733334 0-18.773333 7.36-36.266667 17.493333-52.266666 30.293333-0.106667 25.6-6.613333 50.346667-19.413334 72.426667-13.013333 22.613333-31.573333 40.853333-54.293333 53.653333-1.706667 10.773333-2.666667 21.546667-2.666667 32.213334 0 9.28 0.64 18.666667 2.026667 28.16 22.293333 12.8 40.64 30.933333 53.546667 53.226666 13.333333 23.04 19.84 48.853333 19.306666 75.52 15.253333 12.48 32.32 22.613333 50.24 30.08 22.613333-13.76 48.106667-20.8 74.56-20.8zM736 320H288c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32h448c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32z M480 448H288c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32h192c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32z</Geometry>
  525. <Geometry x:Key="Icon_DataLog">M778.897699 357.164562c0 0-8.915044-25.083282-8.915044-39.09132 0-49.691749 40.274262-89.958848 89.955778-89.958848 49.684586 0 89.959871 40.266076 89.959871 89.958848 0 49.678446-40.275285 89.950661-89.959871 89.950661-3.5345 0-7.02295-0.204661-10.453073-0.599657L688.578648 592.124875c12.164041 15.682167 19.23611 35.808554 19.23611 57.761542 0 50.066279-40.590464 90.657766-90.664929 90.657766-50.073442 0-88.779999-35.885302-88.779999-85.950558l-115.476011-92.133374c-16.444531 17.425881-37.875632 26.425859-63.729463 26.425859-33.247218 0-62.290695-17.981537-77.93193-44.753273l-106.45966 40.508599 0 187.455369c0 32.032554 32.028461 28.257577 32.028461 28.257577l723.428364 0c0 0 30.141484 23.552415 30.141484 49.92404 0 26.376741-30.141484 40.503483-30.141484 40.503483l-754.514359 1.213641c-90.430592 0-89.491197-95.407953-89.491197-95.407953L76.224032 169.234379c0-28.257577 44.276413-32.958646 44.276413-32.958646 28.257577 0 44.272319 29.195949 44.272319 29.195949l0.942465 340.987115 98.001011-31.696909c12.062733-35.609009 30.688953-66.261123 85.449137-66.261123 49.808406 0 90.192162 38.496779 90.192162 88.308255l113.895003 86.481653c17.897625-26.376741 67.666122-24.076348 67.666122-24.076348L778.897699 357.164562z</Geometry>
  526. <Geometry x:Key="Icon_Gou">M198.920606 353.438906l294.89452 398.030819-141.866143 105.106304-294.89452-398.030819 141.866143-105.106304Z M292.668567 679.383279l612.100893-449.37515 104.488343 142.3252-612.100893 449.37515-104.488343-142.3252Z</Geometry>
  527. <Geometry x:Key="Icon_IO">M82.897455 242.920727h145.966545v43.333818c0 31.138909 25.320727 56.506182 56.506182 56.506182h126.882909c31.138909 0 56.506182-25.320727 56.506182-56.506182v-43.333818h475.275636a34.909091 34.909091 0 0 0 0-69.818182H468.712727v-43.426909c0-31.138909-25.320727-56.459636-56.506182-56.459636H285.370182c-31.138909 0-56.506182 25.320727-56.506182 56.459636v43.426909H82.897455a34.909091 34.909091 0 0 0 0 69.818182z m215.784727-99.886545H398.894545v129.908363H298.682182V143.034182z m645.306182 343.179636h-145.966546v-43.333818c0-31.185455-25.367273-56.552727-56.506182-56.552727h-126.882909c-31.138909 0-56.506182 25.367273-56.506182 56.552727v43.380364H82.897455a34.909091 34.909091 0 0 0 0 69.818181h475.275636v43.380364c0 31.138909 25.367273 56.506182 56.506182 56.506182h126.882909c31.138909 0 56.506182-25.367273 56.506182-56.506182v-43.380364h145.966545a34.909091 34.909091 0 1 0-0.046545-69.864727z m-215.738182 99.886546h-100.212364V456.145455h100.212364v129.954909z m215.738182 213.224727H468.712727v-43.380364c0-31.138909-25.320727-56.506182-56.506182-56.506182H285.370182c-31.138909 0-56.506182 25.367273-56.506182 56.506182v43.380364H82.897455a34.909091 34.909091 0 0 0 0 69.818182h145.966545v43.380363c0 31.185455 25.320727 56.552727 56.506182 56.552728h126.882909c31.138909 0 56.506182-25.367273 56.506182-56.552728v-43.380363h475.275636a34.909091 34.909091 0 1 0-0.046545-69.818182zM398.894545 899.211636H298.682182v-129.954909H398.894545v129.954909z</Geometry>
  528. <Geometry x:Key="Icon_TM">M226.167467 541.474133A106.632533 106.632533 0 1 1 332.8 434.8416a106.752 106.752 0 0 1-106.632533 106.632533z m0-179.114666A72.4992 72.4992 0 1 0 298.666667 434.8416a72.567467 72.567467 0 0 0-72.4992-72.482133z M227.9424 541.44a108.1856 108.1856 0 0 1-49.339733-204.561067L507.733333 168.96a108.1856 108.1856 0 1 1 98.304 192.853333l-329.130666 167.8336a107.52 107.52 0 0 1-48.964267 11.793067z m328.823467-350.088533a73.693867 73.693867 0 0 0-33.536 8.0896L194.116267 367.274667a74.069333 74.069333 0 1 0 67.293866 131.959466L590.506667 331.400533a74.069333 74.069333 0 0 0-33.757867-140.049066z M436.667733 849.527467a110.626133 110.626133 0 0 1-20.155733-1.877334 107.52 107.52 0 0 1-69.358933-45.243733L138.461867 497.544533a108.202667 108.202667 0 0 1 178.568533-122.231466L525.653333 680.192a108.2368 108.2368 0 0 1-89.053866 169.335467zM227.6352 362.3936a74.018133 74.018133 0 0 0-61.013333 115.8656l208.6912 304.878933a74.069333 74.069333 0 1 0 122.231466-83.626666L288.8704 394.5984a74.052267 74.052267 0 0 0-61.2352-32.2048zM657.237333 266.581333l-11.281066-28.347733c-4.693333-14.062933-7.645867-18.670933-15.5648-30.976l-1.211734-1.8944-21.845333-23.278933L704.699733 146.773333l-0.1024 98.7136z m14.506667-37.376l0.3584 0.904534 5.205333-2.321067v-42.018133l-22.971733 8.311466c7.850667 12.066133 11.9296 18.807467 17.408 35.1232zM819.9168 344.337067l-90.999467-75.997867 1.8432-132.2496 93.0816-73.4208 81.646934 68.181333-32.8192 39.287467-49.749334-41.540267-41.301333 32.580267-1.1776 83.5072 40.3968 33.723733 50.8928-40.1408 31.709867 40.192-83.524267 65.877334z M701.1328 183.944533h37.819733v32.4096h-37.819733zM338.397867 775.611733h14.779733a16.093867 16.093867 0 0 1 16.093867 16.093867v89.736533h-30.8736v-105.813333-0.017067zM513.962667 723.524267h9.181866a21.538133 21.538133 0 0 1 21.538134 21.538133v144.401067h-30.72v-165.9392z M769.518933 967.099733H128.853333a41.147733 41.147733 0 0 1-41.096533-41.1136v-7.099733a41.130667 41.130667 0 0 1 41.096533-41.096533h640.6656A41.147733 41.147733 0 0 1 810.666667 918.8864v7.099733a41.1648 41.1648 0 0 1-41.147734 41.1136zM128.853333 911.9232a6.9632 6.9632 0 0 0-6.9632 6.9632v7.099733a6.980267 6.980267 0 0 0 6.9632 6.980267h640.6656a6.980267 6.980267 0 0 0 6.980267-6.980267v-7.099733a6.980267 6.980267 0 0 0-6.980267-6.9632z M171.8272 960H129.792a42.0864 42.0864 0 0 1-42.0352-42.0352v-62.395733a42.0352 42.0352 0 0 1 84.0704 0z m-42.0352-112.3328a7.918933 7.918933 0 0 0-7.901867 7.901867v62.395733a7.918933 7.918933 0 0 0 7.901867 7.901867h7.901867v-70.2976a7.901867 7.901867 0 0 0-7.901867-7.901867zM768.1536 960h-42.0352v-104.430933a42.0352 42.0352 0 0 1 84.0704 0v62.395733a42.0864 42.0864 0 0 1-42.0352 42.0352z m-7.901867-34.133333h7.901867a7.918933 7.918933 0 0 0 7.901867-7.901867v-62.395733a7.901867 7.901867 0 0 0-15.803734 0z</Geometry>
  529. <Geometry x:Key="Icon_Next">M530.850448 573.163313c32.005172-31.883636 32.111192-87.434343-0.069818-119.489939C399.437114 322.845737 268.507336 191.603071 137.436629 60.506505c-12.621576-12.625455-27.585939-20.686869-45.26804-23.540364-3.529697-0.570182-7.085253-0.999434-10.630465-1.499798-1.025293 0-2.055758 0-3.081051 0-4.035232 0.575354-8.111838 0.943838-12.091475 1.757091-33.298101 6.818909-54.838303 26.616242-63.959919 59.278222-3.201293 11.479919-2.806949 24.85398-1.135192 35.701657 1.751919 11.344162 7.11499 21.818182 14.479515 30.904889 3.444364 4.252444 7.050343 8.418263 10.918788 12.291879 111.045818 111.127273 222.142061 222.222222 333.247354 333.293899 1.444202 1.444202 3.227152 2.554828 5.187232 4.080485-2.121697 2.222545-3.475394 3.696485-4.879515 5.100606C252.653437 625.450667 145.164468 733.112889 37.416912 840.506182c-15.829333 15.773737-33.541172 31.162182-36.146424 54.273293-1.233455 10.908444-1.859232 22.111677 0 32.929616 0.919273 5.363071 3.262061 10.423596 5.494949 15.358707 23.655434 52.318384 89.514667 64.241778 130.66602 23.186101C268.668953 835.315071 399.501761 703.987071 530.850448 573.163313L530.850448 573.163313zM78.451902 35.466343l-12.091475 1.757091C70.345235 36.410182 74.421841 36.041697 78.451902 35.466343L78.451902 35.466343zM551.467498 36.441212c-38.000485 2.858667-70.434909 37.034667-71.651556 75.106263-0.79903 24.979394 8.131232 45.650747 25.691798 63.197091 111.383273 111.252687 222.661818 222.615273 334.015354 333.893818 1.534707 1.534707 3.686141 2.448808 6.595232 4.327434-3.35903 2.667313-5.116121 3.803798-6.565495 5.253172-68.050747 68.000323-136.075636 136.035556-204.100525 204.065616C591.916791 765.814949 548.391619 809.360808 504.845761 852.880808c-19.449535 19.439192-28.328081 42.706747-24.045899 70.054788 4.829091 30.919111 22.440081 52.516202 51.712 63.010909 29.450343 10.550303 56.692364 4.803232 80.49002-15.848727 1.944566-1.682101 3.798626-3.470222 5.616485-5.288081 130.121697-130.111354 259.955071-260.509737 390.546101-390.141414 33.272242-33.035636 33.454545-88.934141 1.206303-121.050505C879.016912 322.804364 748.093599 191.557818 617.028064 60.456081c-12.626747-12.626747-27.611798-20.655838-45.288727-23.505455-3.534869-0.570182-7.090424-0.994263-10.635636-1.484283-1.030465 0-2.055758 0-3.086222 0.005172C555.835013 35.799919 553.659013 36.274424 551.467498 36.441212L551.467498 36.441212zM551.467498 36.441212</Geometry>
  530. <Geometry x:Key="Icon_Home">M1017.3952 622.848l-452.0448-499.6096A71.2704 71.2704 0 0 0 512 99.1744c-20.3264 0-39.2704 8.5504-53.3504 24.064L6.6048 622.848a25.6 25.6 0 0 0 37.9392 34.304l109.0048-120.4736V947.2c0 42.3424 34.4576 76.8 76.8 76.8h563.2c42.3424 0 76.8-34.4576 76.8-76.8v-410.5216l109.0048 120.4736a25.5488 25.5488 0 1 0 37.9392-34.3552zM614.4 972.8H409.6v-230.4a25.6 25.6 0 0 1 25.6-25.6h153.6a25.6 25.6 0 0 1 25.6 25.6V972.8z m204.8-25.6a25.6 25.6 0 0 1-25.6 25.6H665.6v-230.4c0-42.3424-34.4576-76.8-76.8-76.8h-153.6c-42.3424 0-76.8 34.4576-76.8 76.8V972.8H230.4a25.6 25.6 0 0 1-25.6-25.6V480.1024l291.84-322.56c4.1984-4.6592 9.6768-7.2192 15.36-7.2192s11.1616 2.56 15.36 7.2192l291.84 322.56V947.2z</Geometry>
  531. <Geometry x:Key="Icon_Abort">M287.163054 625.773455c-14.136452 0-25.594676-11.459248-25.594676-25.594676l0-358.751364c0-30.787324 15.917841-58.35791 42.581351-73.751572 26.662486-15.393662 58.499192-15.394686 85.161678 0l173.710044 100.291203c12.241422 7.067202 16.435877 22.720906 9.367652 34.962328-7.066178 12.240398-22.717835 16.436901-34.962328 9.367652l-173.710044-100.291203c-15.332235-8.851663-28.864652-2.948507-33.972326 0-5.107674 2.94953-16.986675 11.718267-16.986675 29.420569l0 358.751364C312.75773 614.314207 301.298482 625.773455 287.163054 625.773455z M346.73108 867.869403c-14.624798 0-29.249596-3.848416-42.581351-11.545247-26.66351-15.393662-42.581351-42.964247-42.581351-73.751572 0-14.135428 11.459248-25.594676 25.594676-25.594676s25.594676 11.459248 25.594676 25.594676c0 17.702302 11.879001 26.471038 16.986675 29.420569s18.642138 8.851663 33.972326 0l468.644666-270.571561c15.331211-8.851663 16.986675-23.523555 16.986675-29.420569 0-5.897013-1.65444-20.569929-16.986675-29.421592l-153.418585-88.577032c-12.241422-7.067202-16.436901-22.720906-9.367652-34.962328 7.067202-12.241422 22.720906-16.436901 34.962328-9.367652l153.418585 88.577032c26.66351 15.394686 42.581351 42.966295 42.581351 73.753619 0 30.7863-15.918865 58.35791-42.581351 73.750548l-468.644666 270.571561C375.979652 864.020988 361.354854 867.869403 346.73108 867.869403z M165.708125 814.893542c-3.930318 0-7.860637-1.499848-10.858285-4.49852-5.997345-5.996321-5.997345-15.72025 0-21.717595l599.814311-599.814311c5.996321-5.996321 15.72025-5.996321 21.717595 0 5.997345 5.996321 5.997345 15.72025 0 21.717595l-599.814311 599.814311C173.568762 813.393694 169.638443 814.893542 165.708125 814.893542z</Geometry>
  532. <Geometry x:Key="Icon_Save">M661.333333 320h-170.666666c-12.8 0-21.333333-8.533333-21.333334-21.333333s8.533333-21.333333 21.333334-21.333334h170.666666c12.8 0 21.333333 8.533333 21.333334 21.333334s-8.533333 21.333333-21.333334 21.333333z M874.666667 917.333333H149.333333c-12.8 0-21.333333-8.533333-21.333333-21.333333V128c0-12.8 8.533333-21.333333 21.333333-21.333333h533.333334c6.4 0 10.666667 2.133333 14.933333 6.4l192 192c4.266667 4.266667 6.4 8.533333 6.4 14.933333v576c0 12.8-8.533333 21.333333-21.333333 21.333333zM170.666667 874.666667h682.666666V328.533333L674.133333 149.333333H170.666667v725.333334z M746.666667 917.333333H277.333333c-12.8 0-21.333333-8.533333-21.333333-21.333333V554.666667c0-12.8 8.533333-21.333333 21.333333-21.333334h469.333334c12.8 0 21.333333 8.533333 21.333333 21.333334v341.333333c0 12.8-8.533333 21.333333-21.333333 21.333333z m-448-42.666666h426.666666V576H298.666667v298.666667z</Geometry>
  533. <Geometry x:Key="Icon_Add">M874.666667 469.333333H554.666667V149.333333c0-23.466667-19.2-42.666667-42.666667-42.666666s-42.666667 19.2-42.666667 42.666666v320H149.333333c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666667h320v320c0 23.466667 19.2 42.666667 42.666667 42.666666s42.666667-19.2 42.666667-42.666666V554.666667h320c23.466667 0 42.666667-19.2 42.666666-42.666667s-19.2-42.666667-42.666666-42.666667z</Geometry>
  534. <Geometry x:Key="Icon_Delete">M341.34016 128l554.65984 0q53.00224 0 90.50112 37.49888t37.49888 90.50112l0 512q0 53.00224-37.49888 90.50112t-90.50112 37.49888l-554.65984 0-341.34016-384zM896 213.34016l-516.34176 0-265.33888 298.65984 265.33888 298.65984 516.34176 0q17.67424 0 30.16704-12.4928t12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM810.65984 384q0 18.00192-12.32896 30.33088l-97.9968 97.66912 97.9968 97.66912q12.32896 12.32896 12.32896 30.33088 0 18.3296-12.16512 30.49472t-30.49472 12.16512q-18.00192 0-30.33088-12.32896l-97.66912-97.9968-97.66912 97.9968q-12.32896 12.32896-30.33088 12.32896-17.67424 0-30.16704-12.4928t-12.4928-30.16704q0-17.32608 12.32896-30.33088l97.9968-97.66912-97.9968-97.66912q-12.32896-13.0048-12.32896-30.33088 0-17.67424 12.4928-30.16704t30.16704-12.4928q18.00192 0 30.33088 12.32896l97.66912 97.9968 97.66912-97.9968q12.32896-12.32896 30.33088-12.32896 18.3296 0 30.49472 12.16512t12.16512 30.49472z</Geometry>
  535. <ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
  536. <Grid Height="25">
  537. <Border Grid.Column="1" Background="White" Opacity="0" Cursor="Hand"/>
  538. <Path x:Name="Arrow" Grid.Column="1" Data="M 0 0 6 6 12 0 Z" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None" Fill="#B1B1B1" />
  539. </Grid>
  540. <ControlTemplate.Triggers>
  541. <Trigger Property="IsChecked" Value="true">
  542. <Setter TargetName="Arrow" Property="RenderTransform">
  543. <Setter.Value>
  544. <RotateTransform CenterX="6" CenterY="3" Angle="180"></RotateTransform>
  545. </Setter.Value>
  546. </Setter>
  547. <Setter TargetName="Arrow" Property="Margin" Value="0 0 0 2"/>
  548. </Trigger>
  549. </ControlTemplate.Triggers>
  550. </ControlTemplate>
  551. <!--MultiComboBox普通样式-->
  552. <Style TargetType="{x:Type customControls:MultiComboBox}">
  553. <Setter Property="Width" Value="200" />
  554. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  555. <Setter Property="VerticalContentAlignment" Value="Center" />
  556. <Setter Property="SnapsToDevicePixels" Value="True" />
  557. <Setter Property="MaxDropDownHeight" Value="400" />
  558. <Setter Property="Template">
  559. <Setter.Value>
  560. <ControlTemplate TargetType="{x:Type customControls:MultiComboBox}">
  561. <Grid>
  562. <Border x:Name="Bg" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderBrush="#eaeaea" BorderThickness="1" >
  563. <Grid x:Name="PART_Root">
  564. <Grid x:Name="PART_InnerGrid" Margin="0">
  565. <Grid.ColumnDefinitions>
  566. <ColumnDefinition Width="*" />
  567. <ColumnDefinition Width="0.3*" MaxWidth="30" />
  568. </Grid.ColumnDefinitions>
  569. <ListBox x:Name="PART_ListBoxChk" SelectionMode="Multiple" BorderThickness="0" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  570. <ListBox.ItemsPanel>
  571. <ItemsPanelTemplate>
  572. <VirtualizingStackPanel Orientation="Horizontal" VirtualizingStackPanel.IsVirtualizing="True" />
  573. </ItemsPanelTemplate>
  574. </ListBox.ItemsPanel>
  575. <ListBox.ItemContainerStyle>
  576. <Style TargetType="ListBoxItem">
  577. <Setter Property="BorderThickness" Value="0"/>
  578. <Setter Property="IsSelected" Value="True"/>
  579. <Setter Property="Template">
  580. <Setter.Value>
  581. <ControlTemplate TargetType="ListBoxItem">
  582. <CheckBox BorderThickness="0" VerticalAlignment="Center" HorizontalAlignment="Center" Content="{Binding ViewName}" IsChecked="{Binding Path=IsSelected,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  583. </ControlTemplate>
  584. </Setter.Value>
  585. </Setter>
  586. </Style>
  587. </ListBox.ItemContainerStyle>
  588. </ListBox>
  589. <!--下拉按钮-->
  590. <ToggleButton x:Name="PART_DropDownToggle" IsTabStop="False"
  591. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  592. Grid.Column="1" Template="{StaticResource ComboBoxToggleButton}" />
  593. </Grid>
  594. </Grid>
  595. </Border>
  596. <!--弹出多选列表-->
  597. <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" StaysOpen="False"
  598. IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
  599. PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom">
  600. <Grid Width="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="{Binding MaxDropDownHeight, RelativeSource={RelativeSource TemplatedParent}}" >
  601. <ListBox x:Name="PART_ListBox" SelectionMode="Multiple" BorderThickness="1 0 1 1" Background="White" ItemsSource="{Binding ItemsSource,RelativeSource={RelativeSource TemplatedParent}}"
  602. MaxHeight="{TemplateBinding MaxDropDownHeight}" BorderBrush="#eaeaea" >
  603. <ListBox.ItemContainerStyle>
  604. <Style TargetType="ListBoxItem">
  605. <Setter Property="Template">
  606. <Setter.Value>
  607. <ControlTemplate TargetType="{x:Type ListBoxItem}" >
  608. <Grid Height="22">
  609. <Border Background="White" Opacity="1"/>
  610. <Border x:Name="bg" BorderBrush="#eaeaea" BorderThickness="0"/>
  611. <ContentPresenter x:Name="content" />
  612. </Grid>
  613. <ControlTemplate.Triggers>
  614. <Trigger Property="IsSelected" Value="True">
  615. <Setter TargetName="bg" Property="Background" Value="#ADD6FF" />
  616. </Trigger>
  617. <MultiTrigger>
  618. <MultiTrigger.Conditions>
  619. <Condition Property="IsMouseOver" Value="true" />
  620. <Condition Property="IsSelected" Value="false"/>
  621. </MultiTrigger.Conditions>
  622. <Setter TargetName="bg" Property="Background" Value="#009BDB" />
  623. <Setter TargetName="bg" Property="Opacity" Value="0.7"/>
  624. <Setter Property="Foreground" Value="White" />
  625. </MultiTrigger>
  626. <Trigger Property="IsEnabled" Value="False">
  627. <Setter TargetName="bg" Property="Opacity" Value="0.3" />
  628. <Setter Property="Foreground" Value="Gray" />
  629. </Trigger>
  630. </ControlTemplate.Triggers>
  631. </ControlTemplate>
  632. </Setter.Value>
  633. </Setter>
  634. </Style>
  635. </ListBox.ItemContainerStyle>
  636. <ListBox.ItemTemplate>
  637. <DataTemplate>
  638. <Grid>
  639. <CheckBox x:Name="chk" Visibility="Hidden" IsChecked="{Binding IsCheck,Mode=TwoWay}" VerticalAlignment="Center"/>
  640. <CheckBox VerticalAlignment="Center" Foreground="{Binding Foreground,RelativeSource={RelativeSource AncestorType=ListBoxItem}}" IsChecked="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem},Path=IsSelected,Mode=TwoWay}" Content="{Binding Path=ViewName}" />
  641. </Grid>
  642. <DataTemplate.Triggers>
  643. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem},Path=IsSelected}" Value="true">
  644. <Setter TargetName="chk" Property="IsChecked" Value="true"/>
  645. </DataTrigger>
  646. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem},Path=IsSelected}" Value="false">
  647. <Setter TargetName="chk" Property="IsChecked" Value="false"/>
  648. </DataTrigger>
  649. </DataTemplate.Triggers>
  650. </DataTemplate>
  651. </ListBox.ItemTemplate>
  652. </ListBox>
  653. </Grid>
  654. </Popup>
  655. </Grid>
  656. </ControlTemplate>
  657. </Setter.Value>
  658. </Setter>
  659. </Style>
  660. <Style TargetType="{x:Type customControls:PathButton}">
  661. <Setter Property="Background" Value="#009ad6" />
  662. <Setter Property="BorderBrush" Value="Silver" />
  663. <Setter Property="Foreground" Value="White" />
  664. <Setter Property="Cursor" Value="Hand"/>
  665. <Setter Property="BorderThickness" Value="1" />
  666. <Setter Property="MouseOverBrush" Value="#1b315e"/>
  667. <Setter Property="IsPressedBrush" Value="#009ad6"/>
  668. <Setter Property="Template">
  669. <Setter.Value>
  670. <ControlTemplate TargetType="{x:Type customControls:PathButton}">
  671. <Border x:Name="border"
  672. CornerRadius="4"
  673. Background ="{TemplateBinding Background}"
  674. BorderBrush="{TemplateBinding BorderBrush}"
  675. BorderThickness="{TemplateBinding BorderThickness}"
  676. SnapsToDevicePixels="true"
  677. IsEnabled="{TemplateBinding IsEnabled}">
  678. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  679. <Path x:Name="Path"
  680. Data="{TemplateBinding PathData}"
  681. Fill="{TemplateBinding DefaultFillBrush}"
  682. RenderTransformOrigin="0.5,0.5"
  683. Stretch="Uniform"
  684. Margin="5"/>
  685. <TextBlock HorizontalAlignment="Right"
  686. x:Name="tb"
  687. Text="{TemplateBinding Content}"
  688. VerticalAlignment="Center"
  689. FontSize="18" Margin="0,0,5,0"
  690. Foreground="{TemplateBinding Foreground}"/>
  691. </StackPanel>
  692. </Border>
  693. <ControlTemplate.Triggers>
  694. <Trigger Property="IsDefaulted" Value="True">
  695. <Setter TargetName="Path" Property="Fill" Value="White" />
  696. </Trigger>
  697. <Trigger Property="IsMouseOver" Value="True">
  698. <Setter TargetName="border" Property="Opacity" Value="0.7" />
  699. </Trigger>
  700. <Trigger Property="IsPressed" Value="True">
  701. <Setter TargetName="Path" Property="Fill" Value="Black" />
  702. <Setter TargetName="tb" Property="Foreground" Value="Black" />
  703. </Trigger>
  704. <Trigger Property="IsEnabled" Value="False">
  705. <Setter TargetName="border" Property="Background" Value="#D2D2D2" />
  706. <Setter TargetName="border" Property="BorderThickness" Value="0" />
  707. </Trigger>
  708. </ControlTemplate.Triggers>
  709. </ControlTemplate>
  710. </Setter.Value>
  711. </Setter>
  712. </Style>
  713. </ResourceDictionary>