|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.MotorBottle"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="500"
- d:DesignWidth="700"
- mc:Ignorable="d">
- <Grid Name="gr">
- <Viewbox >
- <Canvas Width="700" Height="500">
- <local:Bottle
- x:Name="bottle"
- Canvas.Left="608"
- Width="84"
- Height="257" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Top="10" />
- <local:DosingSystem
- Height="386"
- Width="827"
- VerticalAlignment="Center" Canvas.Left="-66" Canvas.Top="186" HorizontalAlignment="Left" />
-
- <Ellipse
- Name="ep"
- Canvas.Left="630"
- Canvas.Top="339"
- Width="40"
- Height="40"
- Fill="Red" HorizontalAlignment="Center" VerticalAlignment="Top" />
-
- </Canvas>
- </Viewbox>
-
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup>
-
- <VisualState Name="Start">
- <Storyboard AutoReverse="True" x:Name="sb" RepeatBehavior="Forever">
- <DoubleAnimation
- Storyboard.TargetName="ep"
- Storyboard.TargetProperty="Opacity"
- From="0"
- To="1"
- Duration="0:0:1" />
-
- <ColorAnimation Storyboard.TargetName="ep" Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)" From="Green" To="Green"/>
- </Storyboard>
- </VisualState>
-
- <VisualState Name="Stop">
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="ep"
- Storyboard.TargetProperty="Opacity"
- To="1"
- Duration="0:0:1" />
- <ColorAnimation Storyboard.TargetName="ep" Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)" To="Red" From="Red"/>
- </Storyboard>
- </VisualState>
-
-
-
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Grid>
- </UserControl>
|