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 1616 <Identity
1717 Name =" FilesDev"
1818 Publisher =" CN=Files"
19- Version =" 2.5.35 .0" />
19+ Version =" 3.0.0 .0" />
2020
2121 <Properties >
2222 <DisplayName >Files - Dev</DisplayName >
Original file line number Diff line number Diff line change 77 xmlns:d=" http://schemas.microsoft.com/expression/blend/2008"
88 xmlns:helpers=" using:Files.App.Helpers"
99 xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006"
10+ Closing=" ContentDialog_Closing"
1011 CornerRadius=" {StaticResource OverlayCornerRadius}"
1112 DefaultButton=" None"
1213 RequestedTheme=" {x:Bind helpers:ThemeHelper.RootTheme}"
1819 </ResourceDictionary >
1920 </ContentDialog .Resources>
2021
21- <Grid >
22+ <Grid x : Name = " ContainerGrid " >
2223 <Grid .RowDefinitions>
2324 <RowDefinition Height =" Auto" />
2425 <RowDefinition Height =" *" />
Original file line number Diff line number Diff line change @@ -17,6 +17,24 @@ public ReleaseNotesDialogViewModel ViewModel
1717 public ReleaseNotesDialog ( )
1818 {
1919 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 ;
2038 }
2139
2240 public new async Task < DialogResult > ShowAsync ( )
You can’t perform that action at this time.
0 commit comments