Back to API Home

The Dialog type exposes the following members.

Constructors

  NameDescription
Public methodDialog
Initializes a new instance of the Dialog class.

Methods

  NameDescription
Public methodClose(DialogResult)
Closes the dialog box.
Public methodClose(DialogResult, IDictionary)
Closes the dialog box.
Public methodStatic memberCreateDialogResultCommand(DialogResult)
Creates a command for a dialog result.
Public methodStatic memberCreateDialogResultCommand(DialogResult, Action)
Creates a command for a dialog result.
Public methodStatic memberCreateDialogResultCommand(DialogResult, String)
Creates a command for a dialog result with a custom name.
Public methodStatic memberCreateDialogResultCommand(DialogResult, String, Action)
Creates a command for a dialog result with a custom name.
Public methodEnsureVisible
Positions the dialog so that at least some of the header is in view. Otherwise it may be possible for the user to place the dialog somewhere unreachable.
Public methodHideLoadingOverlay
Hides any visible loading overlay over the dialog.
Public methodOnApplyTemplate
Retrieves the template parts once a template has been loaded.
(Overrides FrameworkElement..::..OnApplyTemplate()()()().)
Public methodShow()()()()
Shows the dialog modally.
Public methodShow(Boolean)
Shows the dialog.
Public methodShowLoadingOverlay()()()()
Shows the loading overlay.
Public methodShowLoadingOverlay(String)
Shows the loading overlay with a specified message.

Fields

  NameDescription
Public fieldStatic memberCommandsProperty
Registers the Commands property.
Public fieldStatic memberDialogButtonsProperty
Registers the StandardButtons property.
Public fieldStatic memberDialogButtonStyleProperty
Identifies the DialogButtonStyle dependency property.
Public fieldStatic memberHeaderBackgroundProperty
Registers the header background property.
Public fieldStatic memberHeaderMarginProperty
Registers the header margin property.
Public fieldStatic memberHeaderVisibilityProperty
Registers the header visibility property.
Public fieldStatic memberIsUserResizableProperty
Registers the IsUserResizable property.
Public fieldStatic memberShowCloseButtonProperty
Registers the IsUserResizable property.
Public fieldStatic memberTitleColorProperty
Registers the title color property.
Public fieldStatic memberTitleFontFamilyProperty
Declares the FontFamily property.
Public fieldStatic memberTitleFontSizeProperty
Declares the FontSize property.
Public fieldStatic memberTitleFontStretchProperty
Declares the FontStretch property.
Public fieldStatic memberTitleFontStyleProperty
Declares the FontStyle property.
Public fieldStatic memberTitleFontWeightProperty
Declares the FontWeight property.
Public fieldStatic memberTitleMarginProperty
Registers the title margin property.
Public fieldStatic memberTitleProperty
Registers the title property.

Properties

  NameDescription
Public propertyCancelOnEscape
Gets or sets a value indicating whether the dialog should be closed (with a Cancel result) when the user presses the Escape key.
Public propertyCommands
Gets or sets the commands.
Public propertyDialogButtons
Gets or sets a value indicating which buttons will be shown in the dialog.
Public propertyDialogButtonStyle
Gets or sets the dialog button style. This is a dependency property.
Public propertyHeaderBackground
Gets or sets the Dialog header background.
Public propertyHeaderMargin
Gets or sets the Dialog header margin.
Public propertyHeaderVisibility
Gets or sets the header visibility.
Public propertyInitialPosition
Gets or sets the initial position at which the dialog will be displayed.
Public propertyIsModal
Gets a value indicating whether the dialog is shown modally.
Public propertyIsShowing
Gets a value indicating whether this dialog is currently open.
Public propertyIsShowingLoadingOverlay
Gets a value indicating whether the loading overlay is being shown.
Public propertyIsUserResizable
Gets or sets a value indicating whether the user is allowed to resize the dialog by clicking and dragging on the border.
Public propertyPreviouslyFocusedControl
Gets or sets the previously focused control.
Public propertyShowCloseButton
Gets or sets a value indicating whether to show the dialog's close button.
Public propertyTitle
Gets or sets the dialog's title.
Public propertyTitleColor
Gets or sets the brush used for the title text.
Public propertyTitleFontFamily
Gets or sets the FontFamily for the dialog title.
Public propertyTitleFontSize
Gets or sets the FontSize for the dialog title.
Public propertyTitleFontStretch
Gets or sets the FontStretch for the dialog title.
Public propertyTitleFontStyle
Gets or sets the FontStyle for the dialog title.
Public propertyTitleFontWeight
Gets or sets the FontWeight for the dialog title.
Public propertyTitleMargin
Gets or sets the dialog title margin.

Events

  NameDescription
Public eventClosed
Event that occurs once the dialog has closed.
Public eventClosing
Event that occurs when the user has tried to close the dialog. This can be used to prevent the dialog from closing (for example, prompting the user to save changes).
Public eventOpened
Event that occurs when the dialog has opened and is now visible.
Public eventOpening
Event that occurs when the dialog is positioned and ready to show itself.

See Also