55 lines
2.9 KiB
XML
55 lines
2.9 KiB
XML
<UserControl x:Class="VisionUI.Setup.CenterTuningLogView"
|
|
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:aurora="clr-namespace:Aurora.View;assembly=Aurora"
|
|
xmlns:local="clr-namespace:VisionUI.Setup"
|
|
d:DataContext="{d:DesignInstance Type=local:CenterTuningLogViewModel}"
|
|
x:Name="uc"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<aurora:SharedResourceDictionary Source="pack://application:,,,/VisionCommonUI;component/Styles/VisionResources.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<DatePicker Grid.Row="0" Name="CalendarDatePicker" HorizontalAlignment="Right"
|
|
Height="30"
|
|
TextElement.FontSize="12"
|
|
TextElement.FontWeight="Bold"
|
|
BorderBrush="Transparent"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
ToolTip="Select a date that you want to load."
|
|
CalendarStyle="{StaticResource styleCalendar}"
|
|
SelectedDate="{Binding Path=SelectedDate, Mode=TwoWay}"/>
|
|
<DataGrid Grid.Row="1" x:Name="dataGridCenterTuning"
|
|
ItemsSource="{Binding CenterTuningLogItems}"
|
|
IsReadOnly="True"
|
|
AutoGenerateColumns="False"
|
|
CanUserAddRows="False"
|
|
CanUserDeleteRows="False"
|
|
FontSize="14" >
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="Time" Binding="{Binding Time}" CellStyle="{StaticResource CellCenter}"/>
|
|
<DataGridTextColumn Header="Count" Binding="{Binding CurrentCnt}" CellStyle="{StaticResource CellCenter}"/>
|
|
<DataGridTextColumn Header="dX" Binding="{Binding DeltaX, StringFormat=F3}" CellStyle="{StaticResource CellCenter}"/>
|
|
<DataGridTextColumn Header="dY" Binding="{Binding DeltaY, StringFormat=F3}" CellStyle="{StaticResource CellCenter}"/>
|
|
<DataGridTextColumn Header="dT" Binding="{Binding DeltaT, StringFormat=F4}" CellStyle="{StaticResource CellCenter}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
</UserControl>
|