终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MotorBottle.xaml 3.1 KiB

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.MotorBottle"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="500"
  9. d:DesignWidth="700"
  10. mc:Ignorable="d">
  11. <Grid Name="gr">
  12. <Viewbox>
  13. <Canvas Width="700" Height="500">
  14. <local:Bottle
  15. x:Name="bottle"
  16. Canvas.Left="608"
  17. Canvas.Top="10"
  18. Width="84"
  19. Height="257"
  20. HorizontalAlignment="Center"
  21. VerticalAlignment="Top" />
  22. <local:DosingSystem
  23. Canvas.Left="-66"
  24. Canvas.Top="186"
  25. Width="827"
  26. Height="386"
  27. HorizontalAlignment="Left"
  28. VerticalAlignment="Center" />
  29. <Ellipse
  30. Name="ep"
  31. Canvas.Left="630"
  32. Canvas.Top="339"
  33. Width="40"
  34. Height="40"
  35. HorizontalAlignment="Center"
  36. VerticalAlignment="Top"
  37. Fill="Red" />
  38. </Canvas>
  39. </Viewbox>
  40. <VisualStateManager.VisualStateGroups>
  41. <VisualStateGroup>
  42. <VisualState Name="Start">
  43. <Storyboard
  44. x:Name="sb"
  45. AutoReverse="True"
  46. RepeatBehavior="Forever">
  47. <DoubleAnimation
  48. Storyboard.TargetName="ep"
  49. Storyboard.TargetProperty="Opacity"
  50. From="0"
  51. To="1"
  52. Duration="0:0:1" />
  53. <ColorAnimation
  54. Storyboard.TargetName="ep"
  55. Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)"
  56. From="Green"
  57. To="Green" />
  58. </Storyboard>
  59. </VisualState>
  60. <VisualState Name="Stop">
  61. <Storyboard>
  62. <DoubleAnimation
  63. Storyboard.TargetName="ep"
  64. Storyboard.TargetProperty="Opacity"
  65. To="1"
  66. Duration="0:0:1" />
  67. <ColorAnimation
  68. Storyboard.TargetName="ep"
  69. Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)"
  70. From="Red"
  71. To="Red" />
  72. </Storyboard>
  73. </VisualState>
  74. </VisualStateGroup>
  75. </VisualStateManager.VisualStateGroups>
  76. </Grid>
  77. </UserControl>