C# Class ModernWPF.Controls.DialogControl

A user control that can be hosted in a DialogControlContainer like a dialog.
Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: soukoku/ModernWPF Class Usage Examples

Méthodes publiques

Свойство Type Description
CloseOnContainerClickProperty System.Windows.DependencyProperty
CloseOnEscapeKeyProperty System.Windows.DependencyProperty
DisableTargetProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
DialogControl System
ShowDialog void
ShowDialogModal bool?
TryFocus void

Méthodes publiques

Méthode Description
ShowDialog ( DialogControlContainer container ) : void

Shows the dialog on a DialogControlContainer.

ShowDialogModal ( DialogControlContainer container ) : bool?

Shows the dialog on a DialogControlContainer.

Méthodes protégées

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

Private Methods

Méthode Description
DialogControl ( ) : System
ShowDialog ( Window window ) : void
ShowDialogModal ( Window window ) : bool?
TryFocus ( ) : void

Method Details

OnClosed() protected méthode

Called when dialog has been closed.
protected OnClosed ( ) : void
Résultat void

OnFocus() protected méthode

Called when dialog has been shown and focus needs to happen.
protected OnFocus ( ) : void
Résultat void

OnKeyDown() protected méthode

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

ShowDialog() public méthode

Shows the dialog on a DialogControlContainer.
container
public ShowDialog ( DialogControlContainer container ) : void
container DialogControlContainer The container.
Résultat void

ShowDialogModal() public méthode

Shows the dialog on a DialogControlContainer.
container
public ShowDialogModal ( DialogControlContainer container ) : bool?
container DialogControlContainer The container.
Résultat bool?

Property Details

CloseOnContainerClickProperty public_oe static_oe property

The dependency property for CloseOnContainerClick.
public static DependencyProperty,System.Windows CloseOnContainerClickProperty
Résultat System.Windows.DependencyProperty

CloseOnEscapeKeyProperty public_oe static_oe property

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows CloseOnEscapeKeyProperty
Résultat System.Windows.DependencyProperty

DisableTargetProperty public_oe static_oe property

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows DisableTargetProperty
Résultat System.Windows.DependencyProperty