
Description
This agent skill gives guidance on handling application state changes in .NET MAUI apps. It covers the four app states and the cross-platform Window lifecycle events: Created, Activated, Deactivated, Stopped, Resumed and Destroying. It explains the difference between Deactivated and Stopped, which matters when the app is interrupted or moves to the background. The skill shows how to save and restore state across backgrounding and resume cycles, and where to place initialization, teardown and refresh logic. For cases that need the native side, it covers hooking into platform lifecycle callbacks through ConfigureLifecycleEvents. It is for .NET MAUI developers who need the app to behave correctly when it is interrupted and resumed. The skill leaves out page-level navigation events, which belong to the Shell navigation guidance, and service registration, which belongs to the dependency injection guidance. It is delivered as instructions for a coding agent, which applies them to your project.…
Highlights
- Four app states and Window lifecycle events
- Deactivated versus Stopped explained
- Save and restore state on resume
- Native hooks with ConfigureLifecycleEvents
Ratings & Reviews
No ratings yet
Be the first to rate maui-app-lifecycle.
People also visit

maui-dependency-injection
Guidance for configuring dependency injection in .NET MAUI apps
maui-app-lifecycle FAQ
Which lifecycle events does it cover?
Created, Activated, Deactivated, Stopped, Resumed and Destroying, through the cross-platform Window events.
Does it cover platform-native callbacks?
Yes. It explains how to hook into platform lifecycle callbacks with ConfigureLifecycleEvents.
What is out of scope?
Page navigation, which uses the Shell navigation guidance, and service registration, which uses the dependency injection guidance.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill maui-app-lifecycle in your project.
What are the best maui-app-lifecycle alternatives?
Popular alternatives to maui-app-lifecycle include maui-safe-area, maui-dependency-injection and maui-theming. See all maui-app-lifecycle alternatives










