WindowsAppSDK
WindowsAppSDK copied to clipboard
`ToastNotificationManager` APIs crash on Window-minimize
Describe the bug
ToastNotificationManager APIs crash when being called in the VisibilityChanged event handler of Window when the window is being minimized using the Windows-D keyboard shortcut
Steps to reproduce the bug
public MainWindow()
{
InitializeComponent();
VisibilityChanged += (s, e) =>
{
_ = ToastNotificationManager.CreateToastNotifier();
_ = ToastNotificationManager.History.GetHistory();
};
}
- Launch app
- Press
Windows-Dkeyboard combination to minimize all windows - Crash with COMException
Example project: test.zip
Expected behavior
No crash
NuGet package version
Windows App SDK 1.7.3: 1.7.250606001
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 24H2 (22621, October 2024 Update)
IDE
Visual Studio 2022