save config after grid resize

This commit is contained in:
Oleksandr Bezdieniezhnykh
2024-08-14 02:22:12 +03:00
parent 78776d37bd
commit 66a6727e5d
2 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -67,7 +67,6 @@
<ColumnDefinition Width="4"/> <ColumnDefinition Width="4"/>
<ColumnDefinition Width="200" /> <ColumnDefinition Width="200" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Menu Grid.Row="0" <Menu Grid.Row="0"
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="3" Grid.ColumnSpan="3"
@@ -186,6 +185,7 @@
ResizeBehavior="PreviousAndNext" ResizeBehavior="PreviousAndNext"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
DragCompleted="Thumb_OnDragCompleted"
/> />
<wpf:VideoView <wpf:VideoView
Grid.Row="1" Grid.Row="1"
@@ -206,6 +206,7 @@
ResizeBehavior="PreviousAndNext" ResizeBehavior="PreviousAndNext"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
DragCompleted="Thumb_OnDragCompleted"
/> />
<DataGrid x:Name="DgAnnotations" <DataGrid x:Name="DgAnnotations"
Grid.Column="4" Grid.Column="4"
+8
View File
@@ -2,6 +2,7 @@
using System.IO; using System.IO;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input; using System.Windows.Input;
using Azaion.Annotator.DTO; using Azaion.Annotator.DTO;
using Azaion.Annotator.Extensions; using Azaion.Annotator.Extensions;
@@ -350,5 +351,12 @@ public partial class MainWindow
ShowTimeAnnotations(res.Time); ShowTimeAnnotations(res.Time);
}; };
} }
private void Thumb_OnDragCompleted_(object sender, DragCompletedEventArgs e)
{
throw new NotImplementedException();
}
private void Thumb_OnDragCompleted(object sender, DragCompletedEventArgs e) => _ = SaveUserSettings();
} }