|
|
|
<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.View.CurveView"
|
|
|
|
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:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
|
|
|
|
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel"
|
|
|
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.View"
|
|
|
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:CurveDiagramViewModel}"
|
|
|
|
d:DesignHeight="900" d:DesignWidth="1800">
|
|
|
|
<Grid>
|
|
|
|
<DataGrid x:Name="Griddata" AlternationCount="2" IsReadOnly="True" SelectionChanged="Griddata_SelectionChanged"
|
|
|
|
Margin="0,0,0,0" d:ItemsSource="{d:SampleData ItemCount=999}" AutoGenerateColumns="False" MinColumnWidth="30"
|
|
|
|
HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All"
|
|
|
|
BorderThickness="1,1,1,1" ColumnHeaderHeight="40" HorizontalContentAlignment="Right" Grid.ColumnSpan="2" AllowDrop="False"
|
|
|
|
CanUserReorderColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" CanUserResizeColumns="False"
|
|
|
|
CanUserAddRows="True" CanUserDeleteRows="False" HeadersVisibility ="Column"
|
|
|
|
Background="White" SelectionMode="Single" FontSize="15" TabIndex="1" Focusable="True" BorderBrush="Black" HorizontalAlignment="Left" Width="150">
|
|
|
|
<DataGrid.RowStyle >
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
<Setter Property="Height" Value="30" />
|
|
|
|
<Setter Property="FontSize" Value="25" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
|
|
|
<Setter Property="Background" Value="#FFFFFFFF" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsMouseOver" Value="False"/>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="MinWidth" Value="20"/>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Background" Value="#FFC0C0C0"/>
|
|
|
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/>
|
|
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<!--列信息绑定-->
|
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Machine}" Binding="{Binding Name}" Width="auto" IsReadOnly="True"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
<lvc:CartesianChart x:Name="OscChart" MinWidth="1280" MinHeight="600" EasingFunction="{x:Null}"
|
|
|
|
Series="{Binding Series}" YAxes="{Binding YAxes}" XAxes="{Binding XAxes}" Margin="300,0,0,50"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="s1cr" VerticalAlignment="Bottom" Height="50" Background="#FF00204E" Orientation="Horizontal" Margin="0,0,0,0">
|
|
|
|
<materialDesign:PackIcon Kind="DateRange" Width="25" Height="40" Margin="10" VerticalAlignment="Center" Foreground="#FF1368BD"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DatePicker Width="200" Foreground="#FF1368BD" FontSize="20" Height="30" FontWeight="Bold" Padding="1,1,0,1"
|
|
|
|
>
|
|
|
|
<DatePicker.Resources>
|
|
|
|
<Style TargetType="{x:Type DatePickerTextBox}">
|
|
|
|
<Setter Property="IsReadOnly" Value="True"/>
|
|
|
|
</Style>
|
|
|
|
</DatePicker.Resources>
|
|
|
|
</DatePicker>
|
|
|
|
|
|
|
|
<DatePicker Width="200" Foreground="#FF1368BD" FontSize="20"
|
|
|
|
VerticalAlignment="Center" Height="30" FontWeight="Bold" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ListViewItem Height="50" x:Name="Resume">
|
|
|
|
<StackPanel Orientation="Horizontal" >
|
|
|
|
<materialDesign:PackIcon Kind="DateRange" Width="25" Height="40" Margin="10" VerticalAlignment="Center" Foreground="#FF1368BD"/>
|
|
|
|
<TextBlock Text="{x:Static lang:Resources.YES}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
|
|
</StackPanel>
|
|
|
|
</ListViewItem>
|
|
|
|
<ListViewItem Width="150" Height="50" MouseLeftButtonUp="Paused_MouseLeftButtonUp" IsEnabled="False" x:Name="Paused">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<materialDesign:PackIcon Kind="Pause" Width="25" Height="25" Margin="10" VerticalAlignment="Center" Foreground="#FF1368BD"/>
|
|
|
|
<TextBlock Text="{x:Static lang:Resources.Paused}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
|
|
</StackPanel>
|
|
|
|
</ListViewItem>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|