diff --git a/VECTO3GUI2020/Views/JoblistView.xaml b/VECTO3GUI2020/Views/JoblistView.xaml index 6050a41aaf2aef17530a77b2669dced19fe5dcf2..2d842ba7453ac7770f12991b9c8dd01cbb98debd 100644 --- a/VECTO3GUI2020/Views/JoblistView.xaml +++ b/VECTO3GUI2020/Views/JoblistView.xaml @@ -4,7 +4,10 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:VECTO3GUI2020.Views" - xmlns:converter="clr-namespace:VECTO3GUI2020.Helper.Converter" xmlns:implementation="clr-namespace:VECTO3GUI2020.ViewModel.Implementation" d:DataContext="{d:DesignInstance Type=implementation:JobListViewModel}" + xmlns:converter="clr-namespace:VECTO3GUI2020.Helper.Converter" xmlns:implementation="clr-namespace:VECTO3GUI2020.ViewModel.Implementation" + xmlns:i="http://schemas.microsoft.com/xaml/behaviors" + xmlns:behavior="clr-namespace:VECTO3GUI2020.Behaviours" + d:DataContext="{d:DesignInstance Type=implementation:JobListViewModel}" mc:Ignorable="d" AutomationProperties.Name="JobListView" d:DesignHeight="450" d:DesignWidth="1000"> @@ -71,6 +74,10 @@ AlternatingRowBackground="LightGray" CellStyle="{DynamicResource DataGridCellStyle1}" SelectedItem = "{Binding SelectedJob}" > + <i:Interaction.Behaviors> + <behavior:AutoScrollDataGridBehaviour> + </behavior:AutoScrollDataGridBehaviour> + </i:Interaction.Behaviors> <DataGrid.Columns> <DataGridCheckBoxColumn IsReadOnly="False" Header="Simulate" Binding="{Binding Selected}" Width="1*"></DataGridCheckBoxColumn> <DataGridTextColumn IsReadOnly="True" Header="Name" Binding="{Binding DocumentName}" Width="4*"></DataGridTextColumn> diff --git a/VECTO3GUI2020/Views/OutputView.xaml b/VECTO3GUI2020/Views/OutputView.xaml index c5aa6cbbbb1cf28b2e0fd9b48fe9ffbaa2106b66..fb84442a21a003bc81ffc112315778cf4d1158f1 100644 --- a/VECTO3GUI2020/Views/OutputView.xaml +++ b/VECTO3GUI2020/Views/OutputView.xaml @@ -66,7 +66,7 @@ <DataGridTextColumn Header="Time" Binding="{Binding Time, StringFormat=hh:mm:ss dd.MM.yyyy}" Width="150" /> </DataGrid.Columns> <DataGrid.RowStyle> - <Style TargetType="DataGridRow"> + <Style TargetType="DataGridRow"> <Style.Triggers> <DataTrigger Binding="{Binding Type}" Value="{x:Static impl:MessageType.StatusMessage}"> <Setter Property="Background" Value="AliceBlue"/>