C# Class MahApps.Metro.Controls.Dialogs.BaseMetroDialog

Inheritance: System.Windows.Controls.Control
Exibir arquivo Open project: MahApps/MahApps.Metro Class Usage Examples

Public Properties

Property Type Description
DialogBottomProperty System.Windows.DependencyProperty
DialogMessageFontSizeProperty System.Windows.DependencyProperty
DialogTitleFontSizeProperty System.Windows.DependencyProperty
DialogTopProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
BaseMetroDialog System
BaseMetroDialogUnloaded void
DetectTheme Accent>.Tuple
HandleTheme void
Initialize void
ThemeManagerIsThemeChanged void

Public Methods

Method Description
RequestCloseAsync ( ) : System.Threading.Tasks.Task

Requests an externally shown Dialog to close. Will throw an exception if the Dialog is inside of a MetroWindow.

WaitForLoadAsync ( ) : System.Threading.Tasks.Task

Waits for the dialog to become ready for interaction.

WaitUntilUnloadedAsync ( ) : System.Threading.Tasks.Task

Waits until this dialog gets unloaded.

_WaitForCloseAsync ( ) : System.Threading.Tasks.Task

Protected Methods

Method Description
BaseMetroDialog ( MetroWindow owningWindow, MetroDialogSettings settings ) : System

Initializes a new MahApps.Metro.Controls.BaseMetroDialog.

ConfigureSettings ( MetroDialogSettings settings ) : MetroDialogSettings

With this method it's possible to return your own settings in a custom dialog.

OnClose ( ) : void
OnLoaded ( ) : void

This is called in the loaded event.

OnRequestClose ( ) : bool

A last chance virtual method for stopping an external dialog from closing.

OnShown ( ) : void

Private Methods

Method Description
BaseMetroDialog ( ) : System
BaseMetroDialogUnloaded ( object sender, RoutedEventArgs e ) : void
DetectTheme ( DependencyObject dialog ) : Accent>.Tuple
HandleTheme ( ) : void
Initialize ( [ owningWindow, [ settings ) : void
ThemeManagerIsThemeChanged ( object sender, OnThemeChangedEventArgs e ) : void

Method Details

BaseMetroDialog() protected method

Initializes a new MahApps.Metro.Controls.BaseMetroDialog.
protected BaseMetroDialog ( MetroWindow owningWindow, MetroDialogSettings settings ) : System
owningWindow MetroWindow The window that is the parent of the dialog.
settings MetroDialogSettings The settings for the message dialog.
return System

ConfigureSettings() protected method

With this method it's possible to return your own settings in a custom dialog.
protected ConfigureSettings ( MetroDialogSettings settings ) : MetroDialogSettings
settings MetroDialogSettings
return MetroDialogSettings

OnClose() protected method

protected OnClose ( ) : void
return void

OnLoaded() protected method

This is called in the loaded event.
protected OnLoaded ( ) : void
return void

OnRequestClose() protected method

A last chance virtual method for stopping an external dialog from closing.
protected OnRequestClose ( ) : bool
return bool

OnShown() protected method

protected OnShown ( ) : void
return void

RequestCloseAsync() public method

Requests an externally shown Dialog to close. Will throw an exception if the Dialog is inside of a MetroWindow.
public RequestCloseAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WaitForLoadAsync() public method

Waits for the dialog to become ready for interaction.
public WaitForLoadAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WaitUntilUnloadedAsync() public method

Waits until this dialog gets unloaded.
public WaitUntilUnloadedAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

_WaitForCloseAsync() public method

public _WaitForCloseAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Property Details

DialogBottomProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogBottomProperty
return System.Windows.DependencyProperty

DialogMessageFontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogMessageFontSizeProperty
return System.Windows.DependencyProperty

DialogTitleFontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogTitleFontSizeProperty
return System.Windows.DependencyProperty

DialogTopProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogTopProperty
return System.Windows.DependencyProperty

TitleProperty public_oe static_oe property

public static DependencyProperty,System.Windows TitleProperty
return System.Windows.DependencyProperty