70 lines
4.0 KiB
XML
70 lines
4.0 KiB
XML
<UserControl x:Class="VisionUI.Pattern.BcrLogView"
|
|
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.Pattern"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
d:DataContext="{d:DesignInstance Type=local:BcrLogViewModel}"
|
|
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" Text="{Binding DisplayName}" FontSize="15" Margin="5,0" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Left" Width="auto"/>
|
|
|
|
<Grid Grid.Row="1">
|
|
<DataGrid x:Name="dataGridBcrResultItems"
|
|
ItemsSource="{Binding BcrResultItems}"
|
|
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=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="Code"
|
|
Binding="{Binding Code}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="IX"
|
|
Binding="{Binding IX, StringFormat=F1}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="IY"
|
|
Binding="{Binding IY, StringFormat=F1}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="SX"
|
|
Binding="{Binding SX, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="SY"
|
|
Binding="{Binding SY, StringFormat=F3}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
<DataGridTextColumn Header="Status"
|
|
Binding="{Binding Status}" CellStyle="{StaticResource ResourceKey=CellCenterPatternResult}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl> |