C# Class WPF.JoshSmith.Controls.CenteredContentControl

A ContentControl which exposes two dependency properties, CenterX and CenterY. Those properties can be bound to if this element is in a Canvas, and it is positioned via the Left and Top attached properties of the Canvas class.
Inheritance: System.Windows.Controls.ContentControl
Show file Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Properties

Property Type Description
CenterXProperty System.Windows.DependencyProperty
CenterYProperty System.Windows.DependencyProperty

Public Methods

Method Description
CenteredContentControl ( ) : System.Windows

Instance constructor.

Protected Methods

Method Description
OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Updates the CenterX and CenterY properties.

Private Methods

Method Description
UpdateCenterX ( ) : void
UpdateCenterY ( ) : void

Method Details

CenteredContentControl() public method

Instance constructor.
public CenteredContentControl ( ) : System.Windows
return System.Windows

OnPropertyChanged() protected method

Updates the CenterX and CenterY properties.
protected OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

Property Details

CenterXProperty public static property

Identifier for the read-only CenterX dependency property.
public static DependencyProperty,System.Windows CenterXProperty
return System.Windows.DependencyProperty

CenterYProperty public static property

Identifier for the read-only CenterX dependency property.
public static DependencyProperty,System.Windows CenterYProperty
return System.Windows.DependencyProperty