C# Класс MahApps.Metro.Controls.Dialogs.BaseMetroDialog

Наследование: System.Windows.Controls.Control
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DialogBottomProperty System.Windows.DependencyProperty
DialogMessageFontSizeProperty System.Windows.DependencyProperty
DialogTitleFontSizeProperty System.Windows.DependencyProperty
DialogTopProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
BaseMetroDialog System
BaseMetroDialogUnloaded void
DetectTheme Accent>.Tuple
HandleTheme void
Initialize void
ThemeManagerIsThemeChanged void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BaseMetroDialog() защищенный Метод

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.
Результат System

ConfigureSettings() защищенный Метод

With this method it's possible to return your own settings in a custom dialog.
protected ConfigureSettings ( MetroDialogSettings settings ) : MetroDialogSettings
settings MetroDialogSettings
Результат MetroDialogSettings

OnClose() защищенный Метод

protected OnClose ( ) : void
Результат void

OnLoaded() защищенный Метод

This is called in the loaded event.
protected OnLoaded ( ) : void
Результат void

OnRequestClose() защищенный Метод

A last chance virtual method for stopping an external dialog from closing.
protected OnRequestClose ( ) : bool
Результат bool

OnShown() защищенный Метод

protected OnShown ( ) : void
Результат void

RequestCloseAsync() публичный Метод

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
Результат System.Threading.Tasks.Task

WaitForLoadAsync() публичный Метод

Waits for the dialog to become ready for interaction.
public WaitForLoadAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

WaitUntilUnloadedAsync() публичный Метод

Waits until this dialog gets unloaded.
public WaitUntilUnloadedAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

_WaitForCloseAsync() публичный Метод

public _WaitForCloseAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

Описание свойств

DialogBottomProperty публичное статическое свойство

public static DependencyProperty,System.Windows DialogBottomProperty
Результат System.Windows.DependencyProperty

DialogMessageFontSizeProperty публичное статическое свойство

public static DependencyProperty,System.Windows DialogMessageFontSizeProperty
Результат System.Windows.DependencyProperty

DialogTitleFontSizeProperty публичное статическое свойство

public static DependencyProperty,System.Windows DialogTitleFontSizeProperty
Результат System.Windows.DependencyProperty

DialogTopProperty публичное статическое свойство

public static DependencyProperty,System.Windows DialogTopProperty
Результат System.Windows.DependencyProperty

TitleProperty публичное статическое свойство

public static DependencyProperty,System.Windows TitleProperty
Результат System.Windows.DependencyProperty