C# Class Open.Core.UI.Controls.DialogPresenter

A control that presents it's contents as a modal dialog.
Requires the 'DialogPresenter' template-style.
Inheritance: System.Windows.Controls.ContentControl, IDialogPresenter
Show file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
AnimationDurationProperty System.Windows.DependencyProperty
EasingProperty System.Windows.DependencyProperty
IsShowingProperty System.Windows.DependencyProperty
MaskBrushProperty System.Windows.DependencyProperty
MaskOpacityProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AnimateDialog void
FocusContent void
GetDialogLeft double
GetSlidePositions void
Handle_Canvas_SizeChanged void
Handle_ContentLoaded void
OnIsShowingChanged void
UpdateContentMeasurements void
UpdateDialogPosition void
UpdateElementVisibility void

Public Methods

Method Description
DialogPresenter ( ) : System
OnApplyTemplate ( ) : void

Private Methods

Method Description
AnimateDialog ( double duration ) : void
FocusContent ( ) : void
GetDialogLeft ( ) : double
GetSlidePositions ( Point &start, Point &end ) : void
Handle_Canvas_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
Handle_ContentLoaded ( object sender, RoutedEventArgs e ) : void
OnIsShowingChanged ( ) : void
UpdateContentMeasurements ( ) : void
UpdateDialogPosition ( ) : void
UpdateElementVisibility ( ) : void

Method Details

DialogPresenter() public method

public DialogPresenter ( ) : System
return System

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

Property Details

AnimationDurationProperty public static property

Gets or sets the duration (in seconds) of the animated slide when the dialog is shown or hidden.
public static DependencyProperty,System.Windows AnimationDurationProperty
return System.Windows.DependencyProperty

EasingProperty public static property

Gets or sets the easing function to animate the slide with (Null if not required).
public static DependencyProperty,System.Windows EasingProperty
return System.Windows.DependencyProperty

IsShowingProperty public static property

Gets or sets whether the dialog is currently being shown.
public static DependencyProperty,System.Windows IsShowingProperty
return System.Windows.DependencyProperty

MaskBrushProperty public static property

Gets or sets the brush used for the mask which covers the UI when the dialog is showing.
public static DependencyProperty,System.Windows MaskBrushProperty
return System.Windows.DependencyProperty

MaskOpacityProperty public static property

Gets or sets the opacity of the mask which covers the UI when the dialog is showing.
public static DependencyProperty,System.Windows MaskOpacityProperty
return System.Windows.DependencyProperty