Skip to content

Commit

Permalink
Release: 3.0 (#13660)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Nov 5, 2023
1 parent 7dc4bf7 commit f3a72e1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Files.App (Package)/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Identity
Name="FilesDev"
Publisher="CN=Files"
Version="2.5.35.0" />
Version="3.0.0.0" />

<Properties>
<DisplayName>Files - Dev</DisplayName>
Expand Down
3 changes: 2 additions & 1 deletion src/Files.App/Dialogs/ReleaseNotesDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:helpers="using:Files.App.Helpers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Closing="ContentDialog_Closing"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="None"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Expand All @@ -18,7 +19,7 @@
</ResourceDictionary>
</ContentDialog.Resources>

<Grid>
<Grid x:Name="ContainerGrid">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
Expand Down
18 changes: 18 additions & 0 deletions src/Files.App/Dialogs/ReleaseNotesDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ public ReleaseNotesDialogViewModel ViewModel
public ReleaseNotesDialog()
{
InitializeComponent();

MainWindow.Instance.SizeChanged += Current_SizeChanged;
UpdateDialogLayout();
}

private void UpdateDialogLayout()
{
ContainerGrid.MaxHeight = MainWindow.Instance.Bounds.Height - 70;
}

private void Current_SizeChanged(object sender, WindowSizeChangedEventArgs e)
{
UpdateDialogLayout();
}

private void ContentDialog_Closing(ContentDialog sender, ContentDialogClosingEventArgs args)
{
MainWindow.Instance.SizeChanged -= Current_SizeChanged;
}

public new async Task<DialogResult> ShowAsync()
Expand Down

0 comments on commit f3a72e1

Please sign in to comment.