Skip to content

Commit f3a72e1

Browse files
authored
Release: 3.0 (#13660)
1 parent 7dc4bf7 commit f3a72e1

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

src/Files.App (Package)/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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>

src/Files.App/Dialogs/ReleaseNotesDialog.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
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}"
@@ -18,7 +19,7 @@
1819
</ResourceDictionary>
1920
</ContentDialog.Resources>
2021

21-
<Grid>
22+
<Grid x:Name="ContainerGrid">
2223
<Grid.RowDefinitions>
2324
<RowDefinition Height="Auto" />
2425
<RowDefinition Height="*" />

src/Files.App/Dialogs/ReleaseNotesDialog.xaml.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)