Skip to content

MessageBox class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.MessageBox Modifiers: public

Summary

        Customized window for notifications.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class MessageBox
class Window
Window <|-- MessageBox

Inherits from: Window

Constructors

NameSummary
.ctorInitializes a new instance of the [MessageBox](# class.

Properties

NameSummary
ShowTitleGets or sets a value indicating whether to show the Title.
PrimaryButtonTextGets or sets the text to display on the primary button.
SecondaryButtonTextGets or sets the text to be displayed on the secondary button.
CloseButtonTextGets or sets the text to display on the close button.
IsPrimaryButtonEnabledGets or sets a value indicating whether the primary button is enabled.
IsSecondaryButtonEnabledGets or sets a value indicating whether the secondary button is enabled.

Fields

NameSummary
static ShowTitlePropertyProperty for [ShowTitle](#
static PrimaryButtonTextPropertyProperty for [PrimaryButtonText](#
static SecondaryButtonTextPropertyProperty for [SecondaryButtonText](#
static CloseButtonTextPropertyProperty for [CloseButtonText](#
static IsPrimaryButtonEnabledPropertyProperty for [IsPrimaryButtonEnabled](#
static IsSecondaryButtonEnabledPropertyProperty for [IsSecondaryButtonEnabled](#

Methods

NameSummary
ShowDialogAsyncDisplays a message box.
CloseCloses the message box with the specified result.
OnButtonClickHandles button click.
Inherited members