Skip to content

ContentDialog class

Defined in

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

Summary

        Dialogue displayed inside the application covering its internals, displaying some content.
        

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 ContentDialog
class ContentControl
ContentControl <|-- ContentDialog

Inherits from: ContentControl

Constructors

NameSummary
.ctor

Properties

NameSummary
TitleGets or sets the title of the [ContentDialog](#
TitleTemplateGets or sets the title template.
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.
PrimaryButtonCommandGets or sets the command for the primary button.
SecondaryButtonCommandGets or sets the command for the secondary button.
CloseButtonCommandGets or sets the command for 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.
DefaultButtonGets or sets a value that indicates which button on the dialog is the default action.
PrimaryButtonAppearanceGets or sets the appearance of the primary button.
SecondaryButtonAppearanceGets or sets the appearance of the secondary button.
CloseButtonAppearanceGets or sets the appearance of the close button.
DialogWidthGets or sets the width of the dialog.
DialogHeightGets or sets the height of the dialog.
DialogMaxWidthGets or sets the max width of the dialog.
DialogMaxHeightGets or sets the max height of the dialog.
DialogMarginGets or sets the margin of the dialog.
IsFooterVisibleGets or sets a value indicating whether the footer is visible.
ContentPresenterGets or sets the content presenter for displaying the dialog.
DialogPresenterGets or sets the content presenter for displaying the dialog.

Fields

NameSummary
static TitlePropertyProperty for [Title](#
static TitleTemplatePropertyProperty for [TitleTemplate](#
static PrimaryButtonTextPropertyProperty for [PrimaryButtonText](#
static SecondaryButtonTextPropertyProperty for [SecondaryButtonText](#
static CloseButtonTextPropertyProperty for [CloseButtonText](#
static PrimaryButtonCommandPropertyProperty for [PrimaryButtonCommand](#
static SecondaryButtonCommandPropertyProperty for [SecondaryButtonCommand](#
static CloseButtonCommandPropertyProperty for [CloseButtonCommand](#
static IsPrimaryButtonEnabledPropertyProperty for [IsPrimaryButtonEnabled](#
static IsSecondaryButtonEnabledPropertyProperty for [IsSecondaryButtonEnabled](#
static DefaultButtonPropertyProperty for [DefaultButton](#
static PrimaryButtonAppearancePropertyProperty for [PrimaryButtonAppearance](#
static SecondaryButtonAppearancePropertyProperty for [SecondaryButtonAppearance](#
static CloseButtonAppearancePropertyProperty for [CloseButtonAppearance](#
static DialogWidthPropertyProperty for [DialogWidth](#
static DialogHeightPropertyProperty for [DialogHeight](#
static DialogMaxWidthPropertyProperty for [DialogMaxWidth](#
static DialogMaxHeightPropertyProperty for [DialogMaxHeight](#
static DialogMarginPropertyProperty for [DialogMargin](#
static IsFooterVisiblePropertyProperty for [IsFooterVisible](#
static OpenedEventRouted event for [Opened](#
static ClosingEventRouted event for [Closing](#
static ClosedEventRouted event for [Closed](#
static ButtonClickedEventRouted event for [ButtonClicked](#

Methods

NameSummary
ShowAsyncShows the dialog asynchronously.
HideHides the dialog with result.
OnButtonClickCalled when a button is clicked.
OnClosedCalled after the dialog is closed.

Events

NameSummary
OpenedOccurs after the dialog is opened.
ClosingOccurs after the dialog starts to close, but before it is closed.
ClosedOccurs after the dialog is closed.
ButtonClickedOccurs after a button is clicked.
Inherited members