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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [MessageBox](# class. |
Properties¶
| Name | Summary |
|---|---|
| ShowTitle | Gets or sets a value indicating whether to show the Title. |
| PrimaryButtonText | Gets or sets the text to display on the primary button. |
| SecondaryButtonText | Gets or sets the text to be displayed on the secondary button. |
| CloseButtonText | Gets or sets the text to display on the close button. |
| IsPrimaryButtonEnabled | Gets or sets a value indicating whether the primary button is enabled. |
| IsSecondaryButtonEnabled | Gets or sets a value indicating whether the secondary button is enabled. |
Fields¶
| Name | Summary |
|---|---|
| static ShowTitleProperty | Property for [ShowTitle](# |
| static PrimaryButtonTextProperty | Property for [PrimaryButtonText](# |
| static SecondaryButtonTextProperty | Property for [SecondaryButtonText](# |
| static CloseButtonTextProperty | Property for [CloseButtonText](# |
| static IsPrimaryButtonEnabledProperty | Property for [IsPrimaryButtonEnabled](# |
| static IsSecondaryButtonEnabledProperty | Property for [IsSecondaryButtonEnabled](# |
Methods¶
| Name | Summary |
|---|---|
| ShowDialogAsync | Displays a message box. |
| Close | Closes the message box with the specified result. |
| OnButtonClick | Handles button click. |