Dialogs
Modal dialogs with OK/Cancel buttons, dimmed background, and async result handling.
Overview
Dialogs are shown via Window.ShowDialogAsync(), which pushes the window
onto the application's overlay stack with a dimmed background. Input is restricted to the
modal dialog. Setting DialogResult closes it and returns the result.
Key Concepts
Window.ShowDialogAsync()returnsTask<bool?>DialogResultcloses the dialog (true/false/null)- Application overlay stack with dimmed background
- Programmatic control creation for dynamic UI
- Theme color resolution via
ThemeResourceKeys - Input restricted to modal window while active