CustomDialog Class

Summary

An implementation of BaseMetroDialog allowing arbitrary content.
Namespace
MahApps.Metro.Controls.Dialogs
Base Types
graph BT Type-->Base0["BaseMetroDialog"] click Base0 "/api/MahApps.Metro.Controls.Dialogs/BaseMetroDialog" Base0-->Base1["ContentControl"] Type["CustomDialog"] class Type type-node

Syntax

public class CustomDialog : BaseMetroDialog

Constructors

Fields

Name Constant Value Summary
DialogBottomProperty
Identifies the DialogBottom dependency property.
Inherited from BaseMetroDialog
static
DialogButtonFontSizeProperty
Identifies the DialogButtonFontSize dependency property.
Inherited from BaseMetroDialog
static
DialogContentMarginProperty
Identifies the DialogContentMargin dependency property.
Inherited from BaseMetroDialog
static
DialogContentWidthProperty
Identifies the DialogContentWidth dependency property.
Inherited from BaseMetroDialog
static
DialogMessageFontSizeProperty
Identifies the DialogMessageFontSize dependency property.
Inherited from BaseMetroDialog
static
DialogTitleFontSizeProperty
Identifies the DialogTitleFontSize dependency property.
Inherited from BaseMetroDialog
static
DialogTopProperty
Identifies the DialogTop dependency property.
Inherited from BaseMetroDialog
static
TitleProperty
Identifies the Title dependency property.
Inherited from BaseMetroDialog
static

Properties

Name Value Summary
DialogBottom object
Gets or sets the content below the dialog.
Inherited from BaseMetroDialog
DialogButtonFontSize double
Gets or sets the font size of any dialog buttons.
Inherited from BaseMetroDialog
DialogContentMargin GridLength
Gets or sets the left and right margin for the dialog content.
Inherited from BaseMetroDialog
DialogContentWidth GridLength
Gets or sets the width for the dialog content.
Inherited from BaseMetroDialog
DialogMessageFontSize double
Gets or sets the font size of the dialog message text.
Inherited from BaseMetroDialog
DialogSettings MetroDialogSettings
Inherited from BaseMetroDialog
DialogTitleFontSize double
Gets or sets the font size of the dialog title.
Inherited from BaseMetroDialog
DialogTop object
Gets or sets the content above the dialog.
Inherited from BaseMetroDialog
LogicalChildren IEnumerator
Inherited from BaseMetroDialog
Title string
Gets or sets the title of the dialog.
Inherited from BaseMetroDialog

Methods

Name Value Summary
ConfigureSettings(MetroDialogSettings) MetroDialogSettings
With this method it's possible to return your own settings in a custom dialog.
Inherited from BaseMetroDialog
OnCreateAutomationPeer() AutomationPeer
Inherited from BaseMetroDialog
OnLoaded() void
This is called in the loaded event.
Inherited from BaseMetroDialog
RequestCloseAsync() Task
Requests an externally shown Dialog to close. Will throw an exception if the Dialog is inside of a MetroWindow.
Inherited from BaseMetroDialog
WaitForCloseAsync() Task
Inherited from BaseMetroDialog
WaitForLoadAsync() Task
Waits for the dialog to become ready for interaction.
Inherited from BaseMetroDialog
WaitUntilUnloadedAsync() Task
Waits until this dialog gets unloaded.
Inherited from BaseMetroDialog

Extension Methods

Name Value Summary
ShowDialogExternally<CustomDialog>(Window, Action<Window>) TDialog
Create and show an external dialog.
ShowModalDialogExternally<CustomDialog>(Window, Action<Window>) TDialog
Create and show an external modal dialog.