DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Class UIDialog

    Represents a modal dialog.

    Inheritance
    object
    UIDialog
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    IDisposable

    Extension Methods

    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys