Share via

Windows Application Packaging Project create new instance everytime open a toast notification

nguyen tam 1 Reputation point
2021-09-18T14:37:54.723+00:00

Windows Application Packaging Project create new instance everytime I open a toast notification. That's not what I want. The second time the app open (from toast notification), this exception fires

System.InvalidOperationException: 'Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed.'

How to allow only one instance?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | Windows Presentation Foundation

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.