C# Class ModernWPF.Controls.DialogControl

A user control that can be hosted in a DialogControlContainer like a dialog.
Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: soukoku/ModernWPF Class Usage Examples

Public Properties

Property Type Description
CloseOnContainerClickProperty System.Windows.DependencyProperty
CloseOnEscapeKeyProperty System.Windows.DependencyProperty
DisableTargetProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
DialogControl System
ShowDialog void
ShowDialogModal bool?
TryFocus void

Public Methods

Method Description
ShowDialog ( DialogControlContainer container ) : void

Shows the dialog on a DialogControlContainer.

ShowDialogModal ( DialogControlContainer container ) : bool?

Shows the dialog on a DialogControlContainer.

Protected Methods

Method 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

Method Description
DialogControl ( ) : System
ShowDialog ( Window window ) : void
ShowDialogModal ( Window window ) : bool?
TryFocus ( ) : void

Method Details

OnClosed() protected method

Called when dialog has been closed.
protected OnClosed ( ) : void
return void

OnFocus() protected method

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

OnKeyDown() protected method

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.
return void

ShowDialog() public method

Shows the dialog on a DialogControlContainer.
container
public ShowDialog ( DialogControlContainer container ) : void
container DialogControlContainer The container.
return void

ShowDialogModal() public method

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

Property Details

CloseOnContainerClickProperty public_oe static_oe property

The dependency property for CloseOnContainerClick.
public static DependencyProperty,System.Windows CloseOnContainerClickProperty
return System.Windows.DependencyProperty

CloseOnEscapeKeyProperty public_oe static_oe property

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows CloseOnEscapeKeyProperty
return System.Windows.DependencyProperty

DisableTargetProperty public_oe static_oe property

The dependency property for CloseOnEscapeKey.
public static DependencyProperty,System.Windows DisableTargetProperty
return System.Windows.DependencyProperty