API
Window.Stopped
Signals a window entering the stopped lifecycle state.
Formal Syntax & Structure
csharp syntaxcsharp
window.Stopped += (_, _) => { /* cancel work */ };Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.window.Stopped += (_, _) => { /* cancel work */ };