mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Disable Mica before close the window to resolve a crash (#1619)
This commit is contained in:
parent
1fc360e31d
commit
66c2f5915e
1 changed files with 4 additions and 0 deletions
|
@ -440,6 +440,10 @@ namespace CalculatorApp
|
|||
|
||||
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(() =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue