dotnet / docs-maui

This repository contains documentation for .NET Multi-platform App UI (MAUI).
https://docs.microsoft.com/dotnet/maui
Creative Commons Attribution 4.0 International
221 stars 193 forks source link

Add lifecycle docs for views #1260

Open mattleibow opened 1 year ago

mattleibow commented 1 year ago

We have docs on app/window lifecycle, but not for individual views. Some events that I see are:

Before properties set:

After properties set:

See also https://github.com/dotnet/maui/issues/4071

mattleibow commented 1 year ago

@PureWeen am I missing some? Is there any order or platform differences?

MartyIX commented 8 months ago

This would be really helpful to document.

Especially, it would be great to know how to emulate "dispose" behavior for custom controls - i.e. should one use the combination of Loaded & Unloaded or implement IDisposable on custom controls?

Possibly related questions: