79 lines
4.7 KiB
XML
79 lines
4.7 KiB
XML
<UserControl x:Class="VisionUI.Inspector.AttachInspLogView"
|
|
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:local="clr-namespace:VisionUI.Inspector"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
d:DataContext="{d:DesignInstance Type=local:AttachInspLogViewModel}"
|
|
d:DesignHeight="450" d:DesignWidth="580"
|
|
IsVisibleChanged="UserControl_IsVisibleChanged"
|
|
Margin="10,10,10,10"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<view:SharedResourceDictionary Source="pack://application:,,,/VisionCommonUI;component/Styles/VisionResources.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<DatePicker Grid.Row="0" Name="CalendarDatePicker"
|
|
Height="30"
|
|
TextElement.FontSize="12"
|
|
TextElement.FontWeight="Bold"
|
|
BorderBrush="Transparent"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Right"
|
|
VerticalContentAlignment="Center"
|
|
ToolTip="Select a date that you want to load."
|
|
CalendarStyle="{StaticResource styleCalendar}"
|
|
SelectedDate="{Binding Path=SelectedDate, Mode=TwoWay}"/>
|
|
<TextBlock Grid.Row="0" FontSize="15" Margin="5,0" Foreground="Cyan"
|
|
VerticalAlignment="Center" HorizontalAlignment="Left" Width="auto">
|
|
<Run Text="{Binding [Attach], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
<Run Text="{Binding [Insp], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
<Run Text="{Binding [Log], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
|
|
<Grid Grid.Row="1">
|
|
<DataGrid x:Name="dataGridAttachInspResultItems"
|
|
ItemsSource="{Binding AttachInspResultItems}"
|
|
ScrollViewer.CanContentScroll="True"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
AutoGenerateColumns="False"
|
|
CanUserAddRows="False"
|
|
CanUserDeleteRows="False"
|
|
FontSize="14"
|
|
IsReadOnly="True">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="Time"
|
|
Binding="{Binding Time}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="FovId"
|
|
Binding="{Binding FovId}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="MeasureW"
|
|
Binding="{Binding MeasureW, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="SpecW"
|
|
Binding="{Binding SpecW, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="ErrW"
|
|
Binding="{Binding ErrW, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="MeasureH"
|
|
Binding="{Binding MeasureH, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="SpecH"
|
|
Binding="{Binding SpecH, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="ErrH"
|
|
Binding="{Binding ErrH, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
<DataGridTextColumn Header="Status"
|
|
Binding="{Binding InspStatus}" CellStyle="{StaticResource ResourceKey=CellCenterInspResult}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl> |