test.xaml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. <UserControl x:Class="P300_Themes.UserControls.test"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:P300_Themes.UserControls"
  7. xmlns:converters="clr-namespace:P300_Themes.Converters"
  8. xmlns:customControls="clr-namespace:P300_Themes.CustomControls"
  9. xmlns:userControls="clr-namespace:P300_Themes.UserControls"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <Grid>
  13. <Viewbox x:Name="viewbox" Stretch="Fill">
  14. <VisualStateManager.VisualStateGroups>
  15. <VisualStateGroup Name="RobotXActions">
  16. <VisualStateGroup.Transitions>
  17. <VisualTransition To="Extend">
  18. <Storyboard FillBehavior="HoldEnd" SpeedRatio="18">
  19. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  20. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  21. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  22. </DoubleAnimationUsingKeyFrames>
  23. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  24. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  25. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  26. </DoubleAnimationUsingKeyFrames>
  27. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  28. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:9"/>
  29. <LinearDoubleKeyFrame Value="2.126" KeyTime="0:0:8"/>
  30. <LinearDoubleKeyFrame Value="8.443" KeyTime="0:0:7"/>
  31. <LinearDoubleKeyFrame Value="18.756" KeyTime="0:0:6"/>
  32. <LinearDoubleKeyFrame Value="32.753" KeyTime="0:0:5"/>
  33. <LinearDoubleKeyFrame Value="50.009" KeyTime="0:0:4"/>
  34. <LinearDoubleKeyFrame Value="70" KeyTime="0:0:3"/>
  35. <LinearDoubleKeyFrame Value="92.117" KeyTime="0:0:2"/>
  36. <LinearDoubleKeyFrame Value="115.689" KeyTime="0:0:1"/>
  37. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  38. </DoubleAnimationUsingKeyFrames>
  39. </Storyboard>
  40. </VisualTransition>
  41. <VisualTransition To="Retract">
  42. <Storyboard FillBehavior="HoldEnd" SpeedRatio="18">
  43. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  44. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  45. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
  46. </DoubleAnimationUsingKeyFrames>
  47. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  48. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  49. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:9"/>
  50. </DoubleAnimationUsingKeyFrames>
  51. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  52. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  53. <LinearDoubleKeyFrame Value="2.126" KeyTime="0:0:1"/>
  54. <LinearDoubleKeyFrame Value="8.443" KeyTime="0:0:2"/>
  55. <LinearDoubleKeyFrame Value="18.756" KeyTime="0:0:3"/>
  56. <LinearDoubleKeyFrame Value="32.753" KeyTime="0:0:4"/>
  57. <LinearDoubleKeyFrame Value="50.009" KeyTime="0:0:5"/>
  58. <LinearDoubleKeyFrame Value="70" KeyTime="0:0:6"/>
  59. <LinearDoubleKeyFrame Value="92.117" KeyTime="0:0:7"/>
  60. <LinearDoubleKeyFrame Value="115.689" KeyTime="0:0:8"/>
  61. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:9"/>
  62. </DoubleAnimationUsingKeyFrames>
  63. </Storyboard>
  64. </VisualTransition>
  65. </VisualStateGroup.Transitions>
  66. <VisualState Name="X_Origin">
  67. <Storyboard FillBehavior="HoldEnd">
  68. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  69. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  70. </DoubleAnimationUsingKeyFrames>
  71. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  72. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  73. </DoubleAnimationUsingKeyFrames>
  74. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  75. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  76. </DoubleAnimationUsingKeyFrames>
  77. </Storyboard>
  78. </VisualState>
  79. <VisualState Name="Extend">
  80. <Storyboard FillBehavior="HoldEnd">
  81. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  82. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  83. </DoubleAnimationUsingKeyFrames>
  84. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  85. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  86. </DoubleAnimationUsingKeyFrames>
  87. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  88. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  89. </DoubleAnimationUsingKeyFrames>
  90. </Storyboard>
  91. </VisualState>
  92. <VisualState Name="Retract">
  93. <Storyboard FillBehavior="HoldEnd">
  94. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  95. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  96. </DoubleAnimationUsingKeyFrames>
  97. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2ArmRotateAct" Storyboard.TargetProperty="Angle">
  98. <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
  99. </DoubleAnimationUsingKeyFrames>
  100. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2Act" Storyboard.TargetProperty="X">
  101. <LinearDoubleKeyFrame Value="140" KeyTime="0:0:0"/>
  102. </DoubleAnimationUsingKeyFrames>
  103. </Storyboard>
  104. </VisualState>
  105. </VisualStateGroup>
  106. <VisualStateGroup Name="RobotTActions">
  107. <VisualStateGroup.Transitions>
  108. <VisualTransition To="T_Origin">
  109. <Storyboard FillBehavior="HoldEnd">
  110. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  111. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0.5"/>
  112. </DoubleAnimationUsingKeyFrames>
  113. </Storyboard>
  114. </VisualTransition>
  115. <VisualTransition To="Aligner1">
  116. <Storyboard FillBehavior="HoldEnd">
  117. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  118. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0.5"/>
  119. </DoubleAnimationUsingKeyFrames>
  120. </Storyboard>
  121. </VisualTransition>
  122. <VisualTransition To="LP1">
  123. <Storyboard FillBehavior="HoldEnd">
  124. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  125. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.5"/>
  126. </DoubleAnimationUsingKeyFrames>
  127. </Storyboard>
  128. </VisualTransition>
  129. <VisualTransition To="LP2">
  130. <Storyboard FillBehavior="HoldEnd">
  131. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  132. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.5"/>
  133. </DoubleAnimationUsingKeyFrames>
  134. </Storyboard>
  135. </VisualTransition>
  136. <VisualTransition To="LP3">
  137. <Storyboard FillBehavior="HoldEnd">
  138. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  139. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.5"/>
  140. </DoubleAnimationUsingKeyFrames>
  141. </Storyboard>
  142. </VisualTransition>
  143. <VisualTransition To="Dummy1">
  144. <Storyboard FillBehavior="HoldEnd">
  145. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  146. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:0.5"/>
  147. </DoubleAnimationUsingKeyFrames>
  148. </Storyboard>
  149. </VisualTransition>
  150. <VisualTransition To="Dummy2">
  151. <Storyboard FillBehavior="HoldEnd">
  152. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  153. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:0.5"/>
  154. </DoubleAnimationUsingKeyFrames>
  155. </Storyboard>
  156. </VisualTransition>
  157. <VisualTransition To="SRD1">
  158. <Storyboard FillBehavior="HoldEnd">
  159. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  160. <LinearDoubleKeyFrame Value="125" KeyTime="0:0:0.5"/>
  161. </DoubleAnimationUsingKeyFrames>
  162. </Storyboard>
  163. </VisualTransition>
  164. <VisualTransition To="SRD2">
  165. <Storyboard FillBehavior="HoldEnd">
  166. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  167. <LinearDoubleKeyFrame Value="125" KeyTime="0:0:0.5"/>
  168. </DoubleAnimationUsingKeyFrames>
  169. </Storyboard>
  170. </VisualTransition>
  171. <VisualTransition To="RightLocation">
  172. <Storyboard FillBehavior="HoldEnd">
  173. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRightLeftAct" Storyboard.TargetProperty="X">
  174. <LinearDoubleKeyFrame Value="80" KeyTime="0:0:0.5"/>
  175. </DoubleAnimationUsingKeyFrames>
  176. </Storyboard>
  177. </VisualTransition>
  178. <VisualTransition To="LeftLocation">
  179. <Storyboard FillBehavior="HoldEnd">
  180. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRightLeftAct" Storyboard.TargetProperty="X">
  181. <LinearDoubleKeyFrame Value="-80" KeyTime="0:0:0.5"/>
  182. </DoubleAnimationUsingKeyFrames>
  183. </Storyboard>
  184. </VisualTransition>
  185. <VisualTransition To="PMD">
  186. <Storyboard FillBehavior="HoldEnd">
  187. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  188. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0.5"/>
  189. </DoubleAnimationUsingKeyFrames>
  190. </Storyboard>
  191. </VisualTransition>
  192. <VisualTransition To="PUF1">
  193. <Storyboard FillBehavior="HoldEnd">
  194. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  195. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0.5"/>
  196. </DoubleAnimationUsingKeyFrames>
  197. </Storyboard>
  198. </VisualTransition>
  199. <VisualTransition To="PUF2">
  200. <Storyboard FillBehavior="HoldEnd">
  201. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  202. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0.5"/>
  203. </DoubleAnimationUsingKeyFrames>
  204. </Storyboard>
  205. </VisualTransition>
  206. </VisualStateGroup.Transitions>
  207. <VisualState Name="T_Origin">
  208. <Storyboard FillBehavior="HoldEnd">
  209. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  210. <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
  211. </DoubleAnimationUsingKeyFrames>
  212. </Storyboard>
  213. </VisualState>
  214. <VisualState Name="Aligner1">
  215. <Storyboard FillBehavior="HoldEnd">
  216. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  217. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  218. </DoubleAnimationUsingKeyFrames>
  219. </Storyboard>
  220. </VisualState>
  221. <VisualState Name="LP1">
  222. <Storyboard FillBehavior="HoldEnd">
  223. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  224. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  225. </DoubleAnimationUsingKeyFrames>
  226. </Storyboard>
  227. </VisualState>
  228. <VisualState Name="LP2">
  229. <Storyboard FillBehavior="HoldEnd">
  230. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  231. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  232. </DoubleAnimationUsingKeyFrames>
  233. </Storyboard>
  234. </VisualState>
  235. <VisualState Name="LP3">
  236. <Storyboard FillBehavior="HoldEnd">
  237. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  238. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  239. </DoubleAnimationUsingKeyFrames>
  240. </Storyboard>
  241. </VisualState>
  242. <VisualState Name="Dummy1">
  243. <Storyboard FillBehavior="HoldEnd">
  244. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  245. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:0"/>
  246. </DoubleAnimationUsingKeyFrames>
  247. </Storyboard>
  248. </VisualState>
  249. <VisualState Name="Dummy2">
  250. <Storyboard FillBehavior="HoldEnd">
  251. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  252. <LinearDoubleKeyFrame Value="60" KeyTime="0:0:0"/>
  253. </DoubleAnimationUsingKeyFrames>
  254. </Storyboard>
  255. </VisualState>
  256. <VisualState Name="SRD1">
  257. <Storyboard FillBehavior="HoldEnd">
  258. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  259. <LinearDoubleKeyFrame Value="125" KeyTime="0:0:0"/>
  260. </DoubleAnimationUsingKeyFrames>
  261. </Storyboard>
  262. </VisualState>
  263. <VisualState Name="SRD2">
  264. <Storyboard FillBehavior="HoldEnd">
  265. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  266. <LinearDoubleKeyFrame Value="125" KeyTime="0:0:0"/>
  267. </DoubleAnimationUsingKeyFrames>
  268. </Storyboard>
  269. </VisualState>
  270. <VisualState Name="RightLocation">
  271. <Storyboard FillBehavior="HoldEnd">
  272. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRightLeftAct" Storyboard.TargetProperty="X">
  273. <LinearDoubleKeyFrame Value="80" KeyTime="0:0:0"/>
  274. </DoubleAnimationUsingKeyFrames>
  275. </Storyboard>
  276. </VisualState>
  277. <VisualState Name="LeftLocation">
  278. <Storyboard FillBehavior="HoldEnd">
  279. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRightLeftAct" Storyboard.TargetProperty="X">
  280. <LinearDoubleKeyFrame Value="-80" KeyTime="0:0:0"/>
  281. </DoubleAnimationUsingKeyFrames>
  282. </Storyboard>
  283. </VisualState>
  284. <VisualState Name="PMD">
  285. <Storyboard FillBehavior="HoldEnd">
  286. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  287. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  288. </DoubleAnimationUsingKeyFrames>
  289. </Storyboard>
  290. </VisualState>
  291. <VisualState Name="PUF1">
  292. <Storyboard FillBehavior="HoldEnd">
  293. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  294. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  295. </DoubleAnimationUsingKeyFrames>
  296. </Storyboard>
  297. </VisualState>
  298. <VisualState Name="PUF2">
  299. <Storyboard FillBehavior="HoldEnd">
  300. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="robotRotateAct" Storyboard.TargetProperty="Angle">
  301. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  302. </DoubleAnimationUsingKeyFrames>
  303. </Storyboard>
  304. </VisualState>
  305. </VisualStateGroup>
  306. </VisualStateManager.VisualStateGroups>
  307. <Canvas Width="200" Height="300" >
  308. <Canvas.RenderTransform>
  309. <TransformGroup>
  310. <TranslateTransform x:Name="robotRightLeftAct"></TranslateTransform>
  311. </TransformGroup>
  312. </Canvas.RenderTransform>
  313. <Canvas x:Name="robot" Width="100" Height="150" RenderTransformOrigin="1 1" >
  314. <Canvas.RenderTransform>
  315. <TransformGroup>
  316. <!--<RotateTransform x:Name="robotRotateAct"/>-->
  317. <RotateTransform Angle="0"></RotateTransform>
  318. </TransformGroup>
  319. </Canvas.RenderTransform>
  320. <Canvas x:Name="armXT1" Width="200" Height="100" Canvas.Top="100" RenderTransformOrigin="0.5 0.5">
  321. <Canvas.RenderTransform>
  322. <!--<RotateTransform x:Name="armXT1RotateAct"/>120,360-->
  323. <RotateTransform Angle="360"></RotateTransform>
  324. </Canvas.RenderTransform>
  325. <Canvas x:Name="armXT1Arm" Width="70" Height="30" Canvas.Left="30" Canvas.Top="35" RenderTransformOrigin="1 0.5" ToolTip="后臂">
  326. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  327. <Path.Data>
  328. <PathGeometry>
  329. <PathFigure StartPoint="0 5" IsClosed="True">
  330. <LineSegment Point="51 0"/>
  331. <LineSegment Point="51 30" IsStroked="False"/>
  332. <LineSegment Point="0 25"/>
  333. <LineSegment Point="0 5" IsStroked="False"/>
  334. </PathFigure>
  335. </PathGeometry>
  336. </Path.Data>
  337. </Path>
  338. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="0"
  339. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="{StaticResource RobotBrush}"
  340. Data="M 0,5 A 10,10 0 0 0 0,25">
  341. </Path>
  342. </Canvas>
  343. <Canvas x:Name="armXT1Center" Width="40" Height="40" Canvas.Left="80" Canvas.Top="30" ToolTip="底座">
  344. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  345. <Path.Data>
  346. <PathGeometry>
  347. <PathFigure StartPoint="0 6" IsClosed="True">
  348. <LineSegment Point="6 0"/>
  349. <LineSegment Point="34 0"/>
  350. <LineSegment Point="40 6"/>
  351. <LineSegment Point="40 34"/>
  352. <LineSegment Point="34 40"/>
  353. <LineSegment Point="6 40"/>
  354. <LineSegment Point="0 34"/>
  355. </PathFigure>
  356. </PathGeometry>
  357. </Path.Data>
  358. </Path>
  359. <!--<Ellipse Width="40" Height="40" Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round"></Ellipse>-->
  360. </Canvas>
  361. </Canvas>
  362. <Canvas x:Name="armXT2" Width="120" Height="40" Canvas.Left="-90" Canvas.Top="130">
  363. <Canvas.RenderTransform>
  364. <TransformGroup>
  365. <!--<TranslateTransform x:Name="armXT2Act"></TranslateTransform>-->
  366. <TranslateTransform X="0" Y="0"></TranslateTransform>
  367. </TransformGroup>
  368. </Canvas.RenderTransform>
  369. <Canvas x:Name="armXT2Arm" Width="70" Height="20" Canvas.Left="50" Canvas.Top="10" RenderTransformOrigin="0 0.5" Background="#6495ED" ToolTip="前臂">
  370. <Canvas.RenderTransform>
  371. <!--<RotateTransform x:Name="armXT2ArmRotateAct"/>-90-->
  372. <RotateTransform Angle="0"></RotateTransform>
  373. </Canvas.RenderTransform>
  374. <Image></Image>
  375. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="70"
  376. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="WhiteSmoke"
  377. Data="M 0,0 A 10,10 0 0 1 0,20">
  378. </Path>
  379. <Path Stroke="{StaticResource robotBorderBrush}" StrokeThickness="1" Canvas.Left="0"
  380. StrokeEndLineCap="Round" StrokeStartLineCap="Round" Fill="{StaticResource RobotBrush}"
  381. Data="M 0,0 A 10,10 0 0 0 0,20">
  382. </Path>
  383. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  384. <Path.Data>
  385. <PathGeometry>
  386. <PathFigure StartPoint="70 0" >
  387. <LineSegment Point="0 0" />
  388. <LineSegment Point="0 20" IsStroked="False"/>
  389. <LineSegment Point="70 20"/>
  390. <LineSegment Point="70 0" IsStroked="False"/>
  391. </PathFigure>
  392. </PathGeometry>
  393. </Path.Data>
  394. </Path>
  395. <Ellipse Width="12" Height="12" Stroke="#030303" StrokeThickness="2" Fill="Transparent"
  396. Canvas.Top="4" Canvas.Left="62"/>
  397. </Canvas>
  398. <Canvas x:Name="armGripper" Height="40" Width="50" Canvas.Left="0" Canvas.Top="0">
  399. <StackPanel RenderTransformOrigin="0.5,0.5" Canvas.Top="-18">
  400. <StackPanel.RenderTransform>
  401. <TransformGroup>
  402. <ScaleTransform/>
  403. <SkewTransform/>
  404. <RotateTransform Angle="-90"/>
  405. <TranslateTransform/>
  406. </TransformGroup>
  407. </StackPanel.RenderTransform>
  408. <Image Width="40" Source="pack://application:,,,/P300_Themes;component/Themes/Images/parts/atmrobot/hand2.png"></Image>
  409. </StackPanel>
  410. <!--<Path Stroke="Black" StrokeThickness="5" StrokeEndLineCap="Round">
  411. <Path.Data>
  412. <PathGeometry>
  413. <PathFigure StartPoint="30 14" >
  414. <LineSegment Point="10 14" />
  415. <LineSegment Point="4 8" />
  416. <LineSegment Point="-6 8" />
  417. </PathFigure>
  418. <PathFigure StartPoint="30 26" >
  419. <LineSegment Point="10 26" />
  420. <LineSegment Point="4 32" />
  421. <LineSegment Point="-6 32" />
  422. </PathFigure>
  423. </PathGeometry>
  424. </Path.Data>
  425. </Path>
  426. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  427. <Path.Data>
  428. <PathGeometry>
  429. <PathFigure StartPoint="40 0" >
  430. <LineSegment Point="60 0" />
  431. <LineSegment Point="60 40" />
  432. <LineSegment Point="40 40" />
  433. <LineSegment Point="30 30" />
  434. <LineSegment Point="30 10" />
  435. <LineSegment Point="40 0" />
  436. </PathFigure>
  437. </PathGeometry>
  438. </Path.Data>
  439. </Path>
  440. <Path Stroke="{StaticResource robotBorderBrush}" Fill="{StaticResource RobotBrush}" StrokeThickness="1" StrokeEndLineCap="Round" >
  441. <Path.Data>
  442. <PathGeometry>
  443. <PathFigure StartPoint="30 10" >
  444. <LineSegment Point="20 10" />
  445. <LineSegment Point="20 30" />
  446. <LineSegment Point="30 30" />
  447. <LineSegment Point="30 10" IsStroked="False"/>
  448. </PathFigure>
  449. </PathGeometry>
  450. </Path.Data>
  451. </Path>-->
  452. <Ellipse Width="12" Height="12" Stroke="AliceBlue" StrokeThickness="2" Fill="Transparent"
  453. Canvas.Top="14" Canvas.Left="44"/>
  454. <Viewbox Canvas.Left="-64" Canvas.Top="-21" Width="85" Height="85">
  455. <userControls:WaferCtrl WaferData="{Binding RobotWafer,RelativeSource={RelativeSource TemplatedParent}}"/>
  456. </Viewbox>
  457. </Canvas>
  458. </Canvas>
  459. </Canvas>
  460. </Canvas>
  461. </Viewbox>
  462. </Grid>
  463. </UserControl>