GuangChuanRobot.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <UserControl x:Class="Venus_Themes.UserControls.GuangChuanRobot"
  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:Venus_Themes.UserControls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Viewbox Stretch="Uniform" >
  10. <VisualStateManager.VisualStateGroups>
  11. <VisualStateGroup Name="RobotXActions">
  12. <VisualStateGroup.Transitions>
  13. <VisualTransition To="Extend1" >
  14. <Storyboard FillBehavior="HoldEnd" SpeedRatio="8">
  15. <DoubleAnimation Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle" To="0" Duration="0:0:9">
  16. </DoubleAnimation>
  17. <DoubleAnimation Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle" To="0" Duration="0:0:9">
  18. </DoubleAnimation>
  19. <DoubleAnimation Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle" To="180" Duration="0:0:9">
  20. </DoubleAnimation>
  21. </Storyboard>
  22. </VisualTransition>
  23. <VisualTransition To="Retract1">
  24. <Storyboard FillBehavior="HoldEnd" SpeedRatio="8">
  25. <DoubleAnimation Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle" To="180" Duration="0:0:9">
  26. </DoubleAnimation>
  27. <DoubleAnimation Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle" To="-180" Duration="0:0:9">
  28. </DoubleAnimation>
  29. <DoubleAnimation Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle" To="180" Duration="0:0:9">
  30. </DoubleAnimation>
  31. </Storyboard>
  32. </VisualTransition>
  33. <VisualTransition To="Extend2" >
  34. <Storyboard FillBehavior="HoldEnd" SpeedRatio="8">
  35. <DoubleAnimation Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle" To="0" Duration="0:0:9">
  36. </DoubleAnimation>
  37. <DoubleAnimation Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle" To="-180" Duration="0:0:9">
  38. </DoubleAnimation>
  39. <DoubleAnimation Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle" To="360" Duration="0:0:9">
  40. </DoubleAnimation>
  41. </Storyboard>
  42. </VisualTransition>
  43. <VisualTransition To="Retract2">
  44. <Storyboard FillBehavior="HoldEnd" SpeedRatio="8">
  45. <DoubleAnimation Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle" To="180" Duration="0:0:9">
  46. </DoubleAnimation>
  47. <DoubleAnimation Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle" To="-180" Duration="0:0:9">
  48. </DoubleAnimation>
  49. <DoubleAnimation Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle" To="180" Duration="0:0:9">
  50. </DoubleAnimation>
  51. </Storyboard>
  52. </VisualTransition>
  53. </VisualStateGroup.Transitions>
  54. <VisualState Name="Extend1">
  55. <Storyboard FillBehavior="HoldEnd">
  56. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle">
  57. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  58. </DoubleAnimationUsingKeyFrames>
  59. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  60. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  61. </DoubleAnimationUsingKeyFrames>
  62. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle">
  63. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  64. </DoubleAnimationUsingKeyFrames>
  65. </Storyboard>
  66. </VisualState>
  67. <VisualState Name="Retract1">
  68. <Storyboard FillBehavior="HoldEnd">
  69. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle">
  70. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  71. </DoubleAnimationUsingKeyFrames>
  72. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  73. <LinearDoubleKeyFrame Value="-180" KeyTime="0:0:0"/>
  74. </DoubleAnimationUsingKeyFrames>
  75. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle">
  76. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  77. </DoubleAnimationUsingKeyFrames>
  78. </Storyboard>
  79. </VisualState>
  80. <VisualState Name="Extend2">
  81. <Storyboard FillBehavior="HoldEnd">
  82. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle">
  83. <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
  84. </DoubleAnimationUsingKeyFrames>
  85. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  86. <LinearDoubleKeyFrame Value="-180" KeyTime="0:0:0"/>
  87. </DoubleAnimationUsingKeyFrames>
  88. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle">
  89. <LinearDoubleKeyFrame Value="360" KeyTime="0:0:0"/>
  90. </DoubleAnimationUsingKeyFrames>
  91. </Storyboard>
  92. </VisualState>
  93. <VisualState Name="Retract2">
  94. <Storyboard FillBehavior="HoldEnd">
  95. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXTRotateAct" Storyboard.TargetProperty="Angle">
  96. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  97. </DoubleAnimationUsingKeyFrames>
  98. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT1RotateAct" Storyboard.TargetProperty="Angle">
  99. <LinearDoubleKeyFrame Value="-180" KeyTime="0:0:0"/>
  100. </DoubleAnimationUsingKeyFrames>
  101. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="armXT2RotateAct" Storyboard.TargetProperty="Angle">
  102. <LinearDoubleKeyFrame Value="180" KeyTime="0:0:0"/>
  103. </DoubleAnimationUsingKeyFrames>
  104. </Storyboard>
  105. </VisualState>
  106. </VisualStateGroup>
  107. </VisualStateManager.VisualStateGroups>
  108. <Canvas Width="100" Height="100">
  109. <Canvas.RenderTransform>
  110. <TransformGroup>
  111. <RotateTransform CenterX="50" CenterY="125" Angle="180"/>
  112. </TransformGroup>
  113. </Canvas.RenderTransform>
  114. <Canvas Width="100" Height="100" Canvas.Left="10" Canvas.Top="130">
  115. <Image Width="100" Height="100" Source="pack://application:,,,/Venus_Themes;component/Resources/NiceUI/1.3.1.png" Stretch="Uniform"></Image>
  116. </Canvas>
  117. <Canvas Width="100" Height="250">
  118. <Canvas.RenderTransform>
  119. <TransformGroup>
  120. <RotateTransform CenterX="60" CenterY="145" x:Name="armXTRotateAct"/>
  121. </TransformGroup>
  122. </Canvas.RenderTransform>
  123. <Canvas Width="100" Height="100" Canvas.Left="10" Canvas.Top="70">
  124. <Image Width="100" Height="100" Source="pack://application:,,,/Venus_Themes;component/Resources/NiceUI/1.2.1.png" Stretch="Uniform"></Image>
  125. </Canvas>
  126. <Canvas Width="100" Height="100" Canvas.Left="10" Canvas.Top="0">
  127. <Canvas.RenderTransform>
  128. <TransformGroup>
  129. <RotateTransform CenterX="50" CenterY="80" x:Name="armXT1RotateAct"/>
  130. </TransformGroup>
  131. </Canvas.RenderTransform>
  132. <Image Width="100" Height="100" Source="pack://application:,,,/Venus_Themes;component/Resources/NiceUI/1.1.1.png" Stretch="Uniform"></Image>
  133. <!--<Ellipse Width="50" Height="50" Fill="Green" Canvas.Left="25"></Ellipse>-->
  134. </Canvas>
  135. <Canvas Width="100" Height="100" Canvas.Left="10" Canvas.Top="0">
  136. <Canvas.RenderTransform>
  137. <TransformGroup>
  138. <RotateTransform CenterX="50" CenterY="80" x:Name="armXT2RotateAct"/>
  139. </TransformGroup>
  140. </Canvas.RenderTransform>
  141. <Image Width="100" Height="100" Source="pack://application:,,,/Venus_Themes;component/Resources/NiceUI/1.1.1.png" Stretch="Uniform"></Image>
  142. <!--<Ellipse Width="50" Height="50" Fill="Red" Canvas.Left="25"></Ellipse>-->
  143. </Canvas>
  144. </Canvas>
  145. </Canvas>
  146. </Viewbox>
  147. </UserControl>