File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 16
16
<Identity
17
17
Name =" FilesDev"
18
18
Publisher =" CN=Files"
19
- Version =" 2.5.35 .0" />
19
+ Version =" 3.0.0 .0" />
20
20
21
21
<Properties >
22
22
<DisplayName >Files - Dev</DisplayName >
Original file line number Diff line number Diff line change 7
7
xmlns:d=" http://schemas.microsoft.com/expression/blend/2008"
8
8
xmlns:helpers=" using:Files.App.Helpers"
9
9
xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006"
10
+ Closing=" ContentDialog_Closing"
10
11
CornerRadius=" {StaticResource OverlayCornerRadius}"
11
12
DefaultButton=" None"
12
13
RequestedTheme=" {x:Bind helpers:ThemeHelper.RootTheme}"
18
19
</ResourceDictionary >
19
20
</ContentDialog .Resources>
20
21
21
- <Grid >
22
+ <Grid x : Name = " ContainerGrid " >
22
23
<Grid .RowDefinitions>
23
24
<RowDefinition Height =" Auto" />
24
25
<RowDefinition Height =" *" />
Original file line number Diff line number Diff line change @@ -17,6 +17,24 @@ public ReleaseNotesDialogViewModel ViewModel
17
17
public ReleaseNotesDialog ( )
18
18
{
19
19
InitializeComponent ( ) ;
20
+
21
+ MainWindow . Instance . SizeChanged += Current_SizeChanged ;
22
+ UpdateDialogLayout ( ) ;
23
+ }
24
+
25
+ private void UpdateDialogLayout ( )
26
+ {
27
+ ContainerGrid . MaxHeight = MainWindow . Instance . Bounds . Height - 70 ;
28
+ }
29
+
30
+ private void Current_SizeChanged ( object sender , WindowSizeChangedEventArgs e )
31
+ {
32
+ UpdateDialogLayout ( ) ;
33
+ }
34
+
35
+ private void ContentDialog_Closing ( ContentDialog sender , ContentDialogClosingEventArgs args )
36
+ {
37
+ MainWindow . Instance . SizeChanged -= Current_SizeChanged ;
20
38
}
21
39
22
40
public new async Task < DialogResult > ShowAsync ( )
You can’t perform that action at this time.
0 commit comments