135 lines
7.0 KiB
XML
135 lines
7.0 KiB
XML
<Page
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:WPFWCSDemo.Views"
|
|
xmlns:Points="clr-namespace:LiveCharts.Wpf.Points;assembly=LiveCharts.Wpf" x:Class="WPFWCSDemo.Views.MonitorView"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="760" d:DesignWidth="1600"
|
|
Title="MonitorView">
|
|
<Page.Resources>
|
|
<Storyboard x:Key="Storyboard1">
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CircleRgvTest" Storyboard.TargetProperty="(Canvas.Left)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="200"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:11" Value="1280"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:12" Value="1320"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:13" Value="1360"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:14" Value="1390"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:15" Value="1402"/>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CircleRgvTest" Storyboard.TargetProperty="(Canvas.Top)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:11" Value="50.4"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:12" Value="55.4"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:13" Value="70.4"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:14" Value="100.4"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:15" Value="150"/>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CircleRgvTest1" Storyboard.TargetProperty="Angle">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:11" Value="0"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:12" Value="10"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:13" Value="40"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:14" Value="60"/>
|
|
<EasingDoubleKeyFrame KeyTime="00:00:15" Value="90"/>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
|
|
|
</Storyboard>
|
|
</Page.Resources>
|
|
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="生产监控" Style="{StaticResource screenTitle}"/>
|
|
<!--选择层-->
|
|
<DockPanel Grid.Row="1" LastChildFill="False">
|
|
<ListBox Margin="50,10" SelectionMode="Single" SelectedIndex="{Binding LayersSelectedIndex}" Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}" DockPanel.Dock="Left">
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
<i:InvokeCommandAction Command="{Binding LayersSelectCommand}"/>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
<ListBoxItem Content="1#环穿" />
|
|
<ListBoxItem Content="2#环穿" />
|
|
<ListBoxItem Content="3#环穿" />
|
|
<ListBoxItem Content="4#环穿" />
|
|
<ListBoxItem Content="5#环穿" />
|
|
<ListBoxItem Content="6#环穿" />
|
|
<ListBoxItem Content="7#环穿" />
|
|
<ListBoxItem Content="8#环穿" />
|
|
<ListBoxItem Content="9#环穿" />
|
|
|
|
</ListBox>
|
|
<!--图例-->
|
|
<StackPanel Orientation="Horizontal" DockPanel.Dock="Right" Margin="50,5">
|
|
<Rectangle Fill="YellowGreen" Style="{StaticResource standardSymbolRectangle}"/>
|
|
<TextBlock Text="待机" Style="{StaticResource standardSymbolText}"/>
|
|
<Rectangle Fill="LawnGreen" Style="{StaticResource standardSymbolRectangle}"/>
|
|
<TextBlock Text="运行" Style="{StaticResource standardSymbolText}"/>
|
|
<Rectangle Fill="Orange" Style="{StaticResource standardSymbolRectangle}"/>
|
|
<TextBlock Text="维护" VerticalAlignment="Center" FontSize="13" Margin="0,0,10,0"/>
|
|
<Rectangle Fill="Red" Style="{StaticResource standardSymbolRectangle}"/>
|
|
<TextBlock Text="禁用" Style="{StaticResource standardSymbolText}"/>
|
|
</StackPanel>
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
<Canvas Grid.Row="2" Width="1500" Height="650" VerticalAlignment="Top" Background="Transparent">
|
|
<!--轨道-->
|
|
<Rectangle RadiusX="100" RadiusY="100" Height="550" Canvas.Left="52" Stroke="#FF827D7D" Canvas.Top="65" Width="1400" HorizontalAlignment="Left" VerticalAlignment="Center" StrokeThickness="20"/>
|
|
<Grid x:Name="CircleRgvTest" Canvas.Left="200" Canvas.Top="50.4" RenderTransformOrigin="0.5,0.5">
|
|
<Grid.RenderTransform>
|
|
<TransformGroup>
|
|
<RotateTransform x:Name="CircleRgvTest1" Angle="0" />
|
|
</TransformGroup>
|
|
</Grid.RenderTransform>
|
|
<Rectangle RadiusX="5" RadiusY="5" Height="50" Stroke="DarkOrange" Fill="DarkOrange" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.Effect>
|
|
<DropShadowEffect BlurRadius="15" Color="Gray" ShadowDepth="5" Direction="270"/>
|
|
</Rectangle.Effect>
|
|
</Rectangle>
|
|
|
|
<!--链条-->
|
|
<Rectangle Fill="Black" Height="45" Width="7" Margin="52,2,22,2"/>
|
|
<Rectangle Fill="Black" Height="45" Width="7" Margin="22,2,52,2"/>
|
|
|
|
<!--边缘-->
|
|
<Rectangle Height="50" Width="5" Margin="75,0,0,0">
|
|
<Rectangle.Fill>
|
|
<LinearGradientBrush EndPoint="1,1" StartPoint="0,1">
|
|
<GradientStop Color="Black" Offset="0"/>
|
|
<GradientStop Color="#FFF5C761" Offset="1"/>
|
|
<GradientStop Color="#FFD0920A"/>
|
|
</LinearGradientBrush>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
<Rectangle Height="50" Width="5" Margin="0,0,75,0">
|
|
<Rectangle.Fill>
|
|
<LinearGradientBrush EndPoint="0,1" StartPoint="1,1">
|
|
<GradientStop Color="Black" Offset="0"/>
|
|
<GradientStop Color="#FFF5C761" Offset="1"/>
|
|
<GradientStop Color="#FFD0920A"/>
|
|
</LinearGradientBrush>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
|
|
<!--上部平面-->
|
|
<Rectangle Fill="Gold" Height="50" Width="15" Margin="60,0,5,0"/>
|
|
<Rectangle Fill="Gold" Height="50" Width="15" Margin="5,0,60,0"/>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Canvas>
|
|
</Grid>
|
|
</Page>
|