|
@@ -1158,6 +1158,71 @@ |
|
|
</Setter.Value> |
|
|
</Setter.Value> |
|
|
</Setter> |
|
|
</Setter> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="炒锅" BasedOn="{x:Null}" TargetType="{x:Type TextBox}"> |
|
|
|
|
|
<Setter Property="Foreground" Value="#FF1F4D69"/> |
|
|
|
|
|
<Setter Property="Text" Value="Start"/> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type TextBox}"> |
|
|
|
|
|
<ControlTemplate.Resources> |
|
|
|
|
|
<Storyboard RepeatBehavior="Forever" x:Key="csd_dh1"> |
|
|
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"> |
|
|
|
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
|
|
|
|
|
<EasingDoubleKeyFrame KeyTime="00:00:0.5" Value="90"/> |
|
|
|
|
|
<EasingDoubleKeyFrame KeyTime="00:00:1" Value="180"/> |
|
|
|
|
|
<EasingDoubleKeyFrame KeyTime="00:00:1.5" Value="270"/> |
|
|
|
|
|
<EasingDoubleKeyFrame KeyTime="00:00:2" Value="360"/> |
|
|
|
|
|
</DoubleAnimationUsingKeyFrames> |
|
|
|
|
|
</Storyboard> |
|
|
|
|
|
|
|
|
|
|
|
</ControlTemplate.Resources> |
|
|
|
|
|
<Grid Width="100" Height="100"> |
|
|
|
|
|
<Border Style="{DynamicResource border炒锅2}"> |
|
|
|
|
|
<Border x:Name="cai" VerticalAlignment="Top" Width="30" Height="25" Margin="0,10,0,0" Style="{DynamicResource border菜}"> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</Border> |
|
|
|
|
|
<Ellipse x:Name="ellipse" StrokeThickness="5" Width="50" Height="50" RenderTransformOrigin="0.5,0.5" Margin="5,-3,0,0" VerticalAlignment="Top"> |
|
|
|
|
|
<Ellipse.RenderTransform> |
|
|
|
|
|
<TransformGroup> |
|
|
|
|
|
<ScaleTransform/> |
|
|
|
|
|
<SkewTransform AngleY="-0"/> |
|
|
|
|
|
<RotateTransform/> |
|
|
|
|
|
<TranslateTransform/> |
|
|
|
|
|
</TransformGroup> |
|
|
|
|
|
</Ellipse.RenderTransform> |
|
|
|
|
|
<Ellipse.Stroke> |
|
|
|
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
|
|
|
|
|
<GradientStop Color="#CCA48E42"/> |
|
|
|
|
|
<GradientStop Color="#CC2D48DA" Offset="1"/> |
|
|
|
|
|
<GradientStop Color="#FF3FD256" Offset="0.305"/> |
|
|
|
|
|
<GradientStop Color="#FFB12C87" Offset="0.67"/> |
|
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
|
</Ellipse.Stroke> |
|
|
|
|
|
</Ellipse> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
<ControlTemplate.Triggers> |
|
|
|
|
|
<Trigger Property="Text" Value="Start"> |
|
|
|
|
|
<Setter TargetName="ellipse" Property="Visibility" Value="Visible" /> |
|
|
|
|
|
<Setter TargetName="cai" Property="Visibility" Value="Visible" /> |
|
|
|
|
|
<Trigger.EnterActions> |
|
|
|
|
|
<BeginStoryboard x:Name="begin_name" Storyboard="{StaticResource csd_dh1}"/> |
|
|
|
|
|
</Trigger.EnterActions> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
<Trigger Property="Text" Value="Stop"> |
|
|
|
|
|
<Trigger.EnterActions> |
|
|
|
|
|
<StopStoryboard BeginStoryboardName="begin_name"/> |
|
|
|
|
|
</Trigger.EnterActions> |
|
|
|
|
|
<Setter TargetName="ellipse" Property="Visibility" Value="Collapsed" /> |
|
|
|
|
|
<Setter TargetName="cai" Property="Visibility" Value="Collapsed" /> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
|
|
|
|
|
|
</ControlTemplate.Triggers> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
</ResourceDictionary> |
|
|
</ResourceDictionary> |
|
|
</UserControl.Resources> |
|
|
</UserControl.Resources> |
|
|
<Grid> |
|
|
<Grid> |
|
@@ -1202,11 +1267,16 @@ |
|
|
<TextBox x:Name="xiaochewuping_text" Margin="5">1</TextBox> |
|
|
<TextBox x:Name="xiaochewuping_text" Margin="5">1</TextBox> |
|
|
<Button Margin="5" Click="Button_Click" Tag="有菜和碗" Cursor="Hand">有菜和碗</Button> |
|
|
<Button Margin="5" Click="Button_Click" Tag="有菜和碗" Cursor="Hand">有菜和碗</Button> |
|
|
<Button Margin="5" Click="Button_Click" Tag="只有碗" Cursor="Hand">只有碗</Button> |
|
|
<Button Margin="5" Click="Button_Click" Tag="只有碗" Cursor="Hand">只有碗</Button> |
|
|
|
|
|
|
|
|
<Button Margin="5" Click="Button_Click" Tag="无物品" Cursor="Hand">无物品</Button> |
|
|
<Button Margin="5" Click="Button_Click" Tag="无物品" Cursor="Hand">无物品</Button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel> |
|
|
|
|
|
<TextBlock Margin="5">滚筒炒锅</TextBlock> |
|
|
|
|
|
<TextBox x:Name="guntongchaoguo_text" Margin="5">1</TextBox> |
|
|
|
|
|
<Button Margin="5" Click="Button_Click" Tag="启动炒锅" Cursor="Hand">启动炒锅</Button> |
|
|
|
|
|
<Button Margin="5" Click="Button_Click" Tag="停止炒锅" Cursor="Hand">停止炒锅</Button> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
@@ -1319,22 +1389,26 @@ |
|
|
<ColumnDefinition/> |
|
|
<ColumnDefinition/> |
|
|
<ColumnDefinition/> |
|
|
<ColumnDefinition/> |
|
|
</Grid.ColumnDefinitions> |
|
|
</Grid.ColumnDefinitions> |
|
|
<Border Style="{DynamicResource border炒锅}" HorizontalAlignment="Left"> |
|
|
|
|
|
|
|
|
<Grid Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="45,0,0,20"> |
|
|
|
|
|
<TextBox Style="{StaticResource 炒锅}" Text="{Binding wokModel_1.Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(1)号</TextBlock> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(1)号</TextBlock> |
|
|
</Border> |
|
|
|
|
|
<Border Style="{DynamicResource border炒锅}" Grid.Column="1" HorizontalAlignment="Left"> |
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="45,0,0,20"> |
|
|
|
|
|
<TextBox Style="{StaticResource 炒锅}" Text="{Binding wokModel_2.Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(2)号</TextBlock> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(2)号</TextBlock> |
|
|
</Border> |
|
|
|
|
|
<Border Style="{DynamicResource border炒锅}" Grid.Column="2" HorizontalAlignment="Left"> |
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="45,0,0,20"> |
|
|
|
|
|
<TextBox Style="{StaticResource 炒锅}" Text="{Binding wokModel_3.Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(3)号</TextBlock> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(3)号</TextBlock> |
|
|
</Border> |
|
|
|
|
|
<Border Style="{DynamicResource border炒锅}" Grid.Column="3" HorizontalAlignment="Left"> |
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="45,0,0,20"> |
|
|
|
|
|
<TextBox Style="{StaticResource 炒锅}" Text="{Binding wokModel_4.Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(4)号</TextBlock> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(4)号</TextBlock> |
|
|
</Border> |
|
|
|
|
|
<Border Style="{DynamicResource border炒锅}" Grid.Column="4" HorizontalAlignment="Left"> |
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Grid.Column="4" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="45,0,0,20"> |
|
|
|
|
|
<TextBox Style="{StaticResource 炒锅}" Text="{Binding wokModel_5.Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(5)号</TextBlock> |
|
|
<TextBlock Style="{DynamicResource 80号字体样式}" FontSize="16" Width="18" Margin="-10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom">炒锅(5)号</TextBlock> |
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="0"> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="0"> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<StackPanel> |
|
|
<StackPanel> |
|
@@ -1361,7 +1435,6 @@ |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="1"> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="1"> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<StackPanel> |
|
|
<StackPanel> |
|
@@ -1388,7 +1461,6 @@ |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="2"> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="2"> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<StackPanel> |
|
|
<StackPanel> |
|
@@ -1415,7 +1487,6 @@ |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="3"> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="3"> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<StackPanel> |
|
|
<StackPanel> |
|
@@ -1442,7 +1513,6 @@ |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="4"> |
|
|
<Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="100,0,-40,80" Grid.Column="4"> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<Rectangle Stroke="#FFFFA400" StrokeDashArray="5 5" Margin="10"/> |
|
|
<StackPanel> |
|
|
<StackPanel> |
|
|