How to open an alert when app is closed in MAUI windows platform ?

Dani_S 3,786 Reputation points
2023-01-24T15:09:40.1666667+00:00

Hi,

How to open an alert when app is closed in MAUI windows platform ?

I tried OnDisappearing event but exception is thrown.

My scenario is that i want to warn user before closing the app, when something happened.

Thanks,

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
784 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,513 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

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