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

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: MahApps/MahApps.Metro Class Usage Examples

Méthodes publiques

Свойство Type Description
DialogBottomProperty System.Windows.DependencyProperty
DialogMessageFontSizeProperty System.Windows.DependencyProperty
DialogTitleFontSizeProperty System.Windows.DependencyProperty
DialogTopProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
BaseMetroDialog System
BaseMetroDialogUnloaded void
DetectTheme Accent>.Tuple
HandleTheme void
Initialize void
ThemeManagerIsThemeChanged void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat System

ConfigureSettings() protected méthode

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

OnClose() protected méthode

protected OnClose ( ) : void
Résultat void

OnLoaded() protected méthode

This is called in the loaded event.
protected OnLoaded ( ) : void
Résultat void

OnRequestClose() protected méthode

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

OnShown() protected méthode

protected OnShown ( ) : void
Résultat void

RequestCloseAsync() public méthode

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
Résultat System.Threading.Tasks.Task

WaitForLoadAsync() public méthode

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

WaitUntilUnloadedAsync() public méthode

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

_WaitForCloseAsync() public méthode

public _WaitForCloseAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

Property Details

DialogBottomProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogBottomProperty
Résultat System.Windows.DependencyProperty

DialogMessageFontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogMessageFontSizeProperty
Résultat System.Windows.DependencyProperty

DialogTitleFontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogTitleFontSizeProperty
Résultat System.Windows.DependencyProperty

DialogTopProperty public_oe static_oe property

public static DependencyProperty,System.Windows DialogTopProperty
Résultat System.Windows.DependencyProperty

TitleProperty public_oe static_oe property

public static DependencyProperty,System.Windows TitleProperty
Résultat System.Windows.DependencyProperty