C# Класс ModernWPF.Controls.DialogControl

A user control that can be hosted in a DialogControlContainer like a dialog.
Наследование: System.Windows.Controls.UserControl
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
CloseOnContainerClickProperty System.Windows.DependencyProperty
CloseOnEscapeKeyProperty System.Windows.DependencyProperty
DisableTargetProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
DialogControl System
ShowDialog void
ShowDialogModal bool?
TryFocus void

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

Метод Описание
ShowDialog ( DialogControlContainer container ) : void

Shows the dialog on a DialogControlContainer.

ShowDialogModal ( DialogControlContainer container ) : bool?

Shows the dialog on a DialogControlContainer.

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

Метод Описание
OnClosed ( ) : void

Called when dialog has been closed.

OnFocus ( ) : void

Called when dialog has been shown and focus needs to happen.

OnKeyDown ( System e ) : void

Invoked when an unhandled E:System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

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

Метод Описание
DialogControl ( ) : System
ShowDialog ( Window window ) : void
ShowDialogModal ( Window window ) : bool?
TryFocus ( ) : void

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

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

Called when dialog has been closed.
protected OnClosed ( ) : void
Результат void

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

Called when dialog has been shown and focus needs to happen.
protected OnFocus ( ) : void
Результат void

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

Invoked when an unhandled E:System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnKeyDown ( System e ) : void
e System The that contains the event data.
Результат void

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

Shows the dialog on a DialogControlContainer.
container
public ShowDialog ( DialogControlContainer container ) : void
container DialogControlContainer The container.
Результат void

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

Shows the dialog on a DialogControlContainer.
container
public ShowDialogModal ( DialogControlContainer container ) : bool?
container DialogControlContainer The container.
Результат bool?

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

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

The dependency property for CloseOnContainerClick.
public static DependencyProperty,System.Windows CloseOnContainerClickProperty
Результат System.Windows.DependencyProperty

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

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows CloseOnEscapeKeyProperty
Результат System.Windows.DependencyProperty

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

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows DisableTargetProperty
Результат System.Windows.DependencyProperty