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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Title | Gets or sets the title of the [ContentDialog](# |
| TitleTemplate | Gets or sets the title template. |
| 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. |
| PrimaryButtonCommand | Gets or sets the command for the primary button. |
| SecondaryButtonCommand | Gets or sets the command for the secondary button. |
| CloseButtonCommand | Gets or sets the command for 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. |
| DefaultButton | Gets or sets a value that indicates which button on the dialog is the default action. |
| PrimaryButtonAppearance | Gets or sets the appearance of the primary button. |
| SecondaryButtonAppearance | Gets or sets the appearance of the secondary button. |
| CloseButtonAppearance | Gets or sets the appearance of the close button. |
| DialogWidth | Gets or sets the width of the dialog. |
| DialogHeight | Gets or sets the height of the dialog. |
| DialogMaxWidth | Gets or sets the max width of the dialog. |
| DialogMaxHeight | Gets or sets the max height of the dialog. |
| DialogMargin | Gets or sets the margin of the dialog. |
| IsFooterVisible | Gets or sets a value indicating whether the footer is visible. |
| ContentPresenter | Gets or sets the content presenter for displaying the dialog. |
| DialogPresenter | Gets or sets the content presenter for displaying the dialog. |
Fields¶
| Name | Summary |
|---|---|
| static TitleProperty | Property for [Title](# |
| static TitleTemplateProperty | Property for [TitleTemplate](# |
| static PrimaryButtonTextProperty | Property for [PrimaryButtonText](# |
| static SecondaryButtonTextProperty | Property for [SecondaryButtonText](# |
| static CloseButtonTextProperty | Property for [CloseButtonText](# |
| static PrimaryButtonCommandProperty | Property for [PrimaryButtonCommand](# |
| static SecondaryButtonCommandProperty | Property for [SecondaryButtonCommand](# |
| static CloseButtonCommandProperty | Property for [CloseButtonCommand](# |
| static IsPrimaryButtonEnabledProperty | Property for [IsPrimaryButtonEnabled](# |
| static IsSecondaryButtonEnabledProperty | Property for [IsSecondaryButtonEnabled](# |
| static DefaultButtonProperty | Property for [DefaultButton](# |
| static PrimaryButtonAppearanceProperty | Property for [PrimaryButtonAppearance](# |
| static SecondaryButtonAppearanceProperty | Property for [SecondaryButtonAppearance](# |
| static CloseButtonAppearanceProperty | Property for [CloseButtonAppearance](# |
| static DialogWidthProperty | Property for [DialogWidth](# |
| static DialogHeightProperty | Property for [DialogHeight](# |
| static DialogMaxWidthProperty | Property for [DialogMaxWidth](# |
| static DialogMaxHeightProperty | Property for [DialogMaxHeight](# |
| static DialogMarginProperty | Property for [DialogMargin](# |
| static IsFooterVisibleProperty | Property for [IsFooterVisible](# |
| static OpenedEvent | Routed event for [Opened](# |
| static ClosingEvent | Routed event for [Closing](# |
| static ClosedEvent | Routed event for [Closed](# |
| static ButtonClickedEvent | Routed event for [ButtonClicked](# |
Methods¶
| Name | Summary |
|---|---|
| ShowAsync | Shows the dialog asynchronously. |
| Hide | Hides the dialog with result. |
| OnButtonClick | Called when a button is clicked. |
| OnClosed | Called after the dialog is closed. |
Events¶
| Name | Summary |
|---|---|
| Opened | Occurs after the dialog is opened. |
| Closing | Occurs after the dialog starts to close, but before it is closed. |
| Closed | Occurs after the dialog is closed. |
| ButtonClicked | Occurs after a button is clicked. |