Class UIDialog
Represents a modal dialog.
Implements
Inherited Members
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public sealed class UIDialog : IDisposable
Properties
DialogCloseAwaiter
Gets the task that completes when the dialog closes.
Declaration
public Task DialogCloseAwaiter { get; }
Property Value
| Type | Description |
|---|---|
| Task |
DialogContent
Gets the dialog content.
Declaration
public IUIElement? DialogContent { get; }
Property Value
| Type | Description |
|---|---|
| IUIElement |
FooterContent
Gets the footer content.
Declaration
public IUIElement? FooterContent { get; }
Property Value
| Type | Description |
|---|---|
| IUIElement |
IsDismissible
Gets a value indicating whether the dialog can be closed by clicking outside of it, pressing Escape key, or losing focus.
Declaration
public bool IsDismissible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsOpened
Gets a value indicating whether the dialog is opened.
Declaration
public bool IsOpened { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Close()
Closes the dialog.
Declaration
public void Close()
Dispose()
Disposes the dialog.
Declaration
public void Dispose()
Events
IsOpenedChanged
Occurs when the IsOpened property changes.
Declaration
public event EventHandler? IsOpenedChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |