Skip to content

MessageBox class

Attributes: [ToolboxItem(true)] [ToolboxBitmap]

Defined in

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

Summary

        Customized window for notifications.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

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 in [TitleBar](#
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.
PrimaryButtonIconGets or sets the [SymbolRegular](# on the primary button.
SecondaryButtonIconGets or sets the [SymbolRegular](# on the secondary button.
CloseButtonIconGets or sets the [SymbolRegular](# on the close button.
PrimaryButtonAppearanceGets or sets the [ControlAppearance](# on the primary button.
SecondaryButtonAppearanceGets or sets the [ControlAppearance](# on the secondary button.
CloseButtonAppearanceGets or sets the [ControlAppearance](# on the close button.
IsSecondaryButtonEnabledGets or sets a value indicating whether the [MessageBox](# primary button is enabled.
IsPrimaryButtonEnabledGets or sets a value indicating whether the [MessageBox](# secondary button is enabled.
TemplateButtonCommandGets the command triggered after clicking the button on the Footer.
TcsGets or sets the TCS.
OnButtonClickCommandOccurs after the [MessageBoxButton](# is clicked.

Fields

NameSummary
static ShowTitlePropertyIdentifies the [ShowTitle](# dependency property.
static PrimaryButtonTextPropertyIdentifies the [PrimaryButtonText](# dependency property.
static SecondaryButtonTextPropertyIdentifies the [SecondaryButtonText](# dependency property.
static CloseButtonTextPropertyIdentifies the [CloseButtonText](# dependency property.
static PrimaryButtonIconPropertyIdentifies the [PrimaryButtonIcon](# dependency property.
static SecondaryButtonIconPropertyIdentifies the [SecondaryButtonIcon](# dependency property.
static CloseButtonIconPropertyIdentifies the [CloseButtonIcon](# dependency property.
static PrimaryButtonAppearancePropertyIdentifies the [PrimaryButtonAppearance](# dependency property.
static SecondaryButtonAppearancePropertyIdentifies the [SecondaryButtonAppearance](# dependency property.
static CloseButtonAppearancePropertyIdentifies the [CloseButtonAppearance](# dependency property.
static IsPrimaryButtonEnabledPropertyIdentifies the [IsPrimaryButtonEnabled](# dependency property.
static IsSecondaryButtonEnabledPropertyIdentifies the [IsSecondaryButtonEnabled](# dependency property.
static TemplateButtonCommandPropertyIdentifies the [TemplateButtonCommand](# dependency property.

Methods

NameSummary
ShowShows this instance.
ShowDialogShows the dialog.
CloseCloses this instance.
ShowDialogAsyncDisplays a message box.
OnLoadedOccurs after Loading event.
ResizeToContentSizeResizes the MessageBox to fit the content's size, including margins.
OnClosingRaises the Closing event.
CenterWindowOnScreenCenters the window on screen.
OnButtonClickOccurs after the [MessageBoxButton](# is clicked.
Inherited members