Update WinUI to build 2.6.2 (#1660)

This commit is contained in:
Kenny Guo 2021-08-23 13:57:22 +08:00 committed by GitHub
parent ba3cee4366
commit 8797e37e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -440,10 +440,6 @@ private async Task HandleViewReleaseAndRemoveWindowFromMap(WindowFrameService fr
mainPage.UnregisterEventHandlers();
// TODO, remove this workaround after Mica fix
// Workaround app crash caused by Mica in multi-view case.
Microsoft.UI.Xaml.Controls.BackdropMaterial.SetApplyToRootOrPageBackground(mainPage, false);
await frameService.HandleViewRelease();
await Task.Run(() =>
{

View File

@ -788,7 +788,7 @@
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.10</Version>
</PackageReference>
<PackageReference Include="Microsoft.UI.Xaml" Version="2.6.1" />
<PackageReference Include="Microsoft.UI.Xaml" Version="2.6.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CalcViewModel\CalcViewModel.vcxproj">

View File

@ -102,6 +102,7 @@
Loaded="OnNavLoaded"
MenuItemsSource="{x:Bind CreateUIElementsForCategories(Model.Categories), Mode=OneWay}"
OpenPaneLength="{x:Bind NavigationViewOpenPaneLength(Model.IsAlwaysOnTop), Mode=OneWay}"
PaneDisplayMode="LeftMinimal"
PaneClosed="OnNavPaneClosed"
PaneOpened="OnNavPaneOpened"
SelectionChanged="OnNavSelectionChanged"