Files
laatzen/Common/OMNIPruefung/Views/Content/EOLContent.xaml
T
2023-12-05 10:46:06 +01:00

104 lines
4.3 KiB
XML

<Grid x:Class="OMNIPruefung.Views.Content.EOLContent"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:OptionsVM="clr-namespace:OMNIPruefung.ViewModels.Options"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="White">
<Grid Margin="21">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Content="{Binding Header}"
Background="Transparent"
FontWeight="Bold"
FontSize="20"
Padding="0"
Margin="0" />
<Border Grid.Row="0"
VerticalAlignment="Bottom"
Background="Black"
Opacity="0.7"
Height="1"
Margin="0" />
<ItemsControl Grid.Row="1"
ItemsSource="{Binding Option.Options}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type OptionsVM:COMOptionVM}">
<Grid Margin="0, 30, 0, 0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions >
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Grid.Row="0"
Grid.Column="0"
Padding="0"
Margin="0"
FontSize="13"
Content="{Binding State}" />
<Label Grid.Row="0"
Grid.Column="1"
Padding="0"
Margin="0"
FontSize="13"
Foreground="Gray"
Content="{Binding Progress}"
ContentStringFormat="{}{0}%" />
<ProgressBar Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Foreground="{Binding Running, Converter={StaticResource BooleanProgress}}"
Value="{Binding Progress}"
Background="WhiteSmoke"
BorderBrush="WhiteSmoke"
BorderThickness="1"
Margin="0, 5"
Padding="0"
Height="8"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Label Grid.Row="2"
Content="{Binding Error}"
Foreground="{StaticResource Red}" />
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0"
Margin="0"
Content="Plätze aktualisieren"
Style="{DynamicResource SystemBtn}"
Command="{Binding LoadComPorts}"/>
<Button Grid.Column="2"
Content="Abbruch"
Style="{DynamicResource SystemBtn}"
Command="{Binding CancelInspection}"/>
<Button Grid.Column="3"
Content="Prüfung starten"
Style="{DynamicResource SystemBtn}"
Command="{Binding StartInspection}"/>
</Grid>
</Grid>
</Grid>