Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
|
- <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"
- Canvas.Top="10"
- Width="84"
- Height="257"
- HorizontalAlignment="Center"
- VerticalAlignment="Top" />
- <local:DosingSystem
- Canvas.Left="-66"
- Canvas.Top="186"
- Width="827"
- Height="386"
- HorizontalAlignment="Left"
- VerticalAlignment="Center" />
-
- <Ellipse
- Name="ep"
- Canvas.Left="630"
- Canvas.Top="339"
- Width="40"
- Height="40"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Fill="Red" />
-
- </Canvas>
- </Viewbox>
-
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup>
-
- <VisualState Name="Start">
- <Storyboard
- x:Name="sb"
- AutoReverse="True"
- 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)"
- From="Red"
- To="Red" />
- </Storyboard>
- </VisualState>
-
-
-
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Grid>
- </UserControl>
|