148 lines
6.9 KiB
XML
148 lines
6.9 KiB
XML
<Window x:Class="InspectionUI.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Local="clr-namespace:InspectionUI"
|
|
Icon="MainWindow.png"
|
|
Height="600"
|
|
Width="977">
|
|
<Window.DataContext>
|
|
<Local:MainWindowVM />
|
|
</Window.DataContext>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="LightGray" BorderThickness="0, 1" Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ComboBox Background="White"
|
|
BorderBrush="White"
|
|
FontFamily="Consolas"
|
|
FontWeight="Bold"
|
|
Grid.Column="0"
|
|
ItemsSource="{Binding Plugins}"
|
|
Margin="5, 5, 0, 5"
|
|
Padding="5"
|
|
SelectedValue="{Binding Plugin}"
|
|
Style="{DynamicResource ComboBoxStyle}"
|
|
Visibility="{Binding PluginsDropdownVisibility}"
|
|
VerticalContentAlignment="Center"
|
|
MinWidth="150" />
|
|
<TextBox Grid.Column="1"
|
|
FontFamily="Consolas"
|
|
FontWeight="Bold"
|
|
HorizontalContentAlignment="Left"
|
|
Margin="5, 5, 0, 5"
|
|
Text="{Binding SearchToken}"
|
|
VerticalContentAlignment="Center"
|
|
Width="150" />
|
|
<Button Command="{Binding LoadInspectionParameters}"
|
|
Content="Laden"
|
|
Cursor="Hand"
|
|
FontFamily="Consolas"
|
|
Grid.Column="2"
|
|
IsEnabled="{Binding IsLoadEnabled}"
|
|
Margin="5, 5, 0, 5"
|
|
Padding="10, 5"/>
|
|
<Button Command="{Binding StartInspection}"
|
|
Content="Prüfung starten"
|
|
Cursor="Hand"
|
|
FontFamily="Consolas"
|
|
Grid.Column="4"
|
|
IsEnabled="{Binding IsStartEnabled}"
|
|
Margin="5"
|
|
Padding="10, 5"/>
|
|
<Button Command="{Binding CancelInspection}"
|
|
Content="Abbrechen"
|
|
Cursor="Hand"
|
|
FontFamily="Consolas"
|
|
Grid.Column="5"
|
|
IsEnabled="{Binding IsCancelEnabled}"
|
|
Margin="5"
|
|
Padding="10, 5" />
|
|
</Grid>
|
|
</Border>
|
|
<ScrollViewer Grid.Row="1"
|
|
CanContentScroll="True"
|
|
IsDeferredScrollingEnabled="True"
|
|
VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
Margin="5">
|
|
<Local:ItemsGrid ItemsSource="{Binding ItemsGridSource}" />
|
|
</ScrollViewer>
|
|
<Border Background="WhiteSmoke"
|
|
BorderBrush="LightGray"
|
|
BorderThickness="1"
|
|
CornerRadius="4"
|
|
Grid.Row="2"
|
|
Visibility="{Binding NotificationsVisibility}"
|
|
Margin="5"
|
|
Padding="5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ScrollViewer Grid.Column="0"
|
|
CanContentScroll="True"
|
|
IsDeferredScrollingEnabled="True"
|
|
VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Disabled">
|
|
<TextBlock FontFamily="Consolas"
|
|
Margin="5"
|
|
Padding="3"
|
|
Text="{Binding Notifications}"
|
|
TextWrapping="Wrap"/>
|
|
</ScrollViewer>
|
|
<Button Background="WhiteSmoke"
|
|
BorderThickness="0"
|
|
Command="{Binding CopyNotification}"
|
|
Cursor="Hand"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="5"
|
|
Padding="4"
|
|
Visibility="{Binding NotificationsVisibility}">
|
|
<Path Stretch="UniformToFill"
|
|
Fill="Gray"
|
|
Height="10"
|
|
Width="10">
|
|
<Path.Data>
|
|
<GeometryGroup>
|
|
<PathGeometry Figures="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z" />
|
|
<PathGeometry Figures="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z" />
|
|
</GeometryGroup>
|
|
</Path.Data>
|
|
</Path>
|
|
</Button>
|
|
<Button Background="WhiteSmoke"
|
|
BorderThickness="0"
|
|
Command="{Binding CloseNotification}"
|
|
Cursor="Hand"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="5"
|
|
Padding="5">
|
|
<Path Data="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"
|
|
Stretch="UniformToFill"
|
|
Fill="Gray"
|
|
Height="8"
|
|
Width="8" />
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|