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
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Свойство Type Description
CenterXProperty System.Windows.DependencyProperty
CenterYProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
CenteredContentControl ( ) : System.Windows

Instance constructor.

Méthodes protégées

Méthode Description
OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Updates the CenterX and CenterY properties.

Private Methods

Méthode Description
UpdateCenterX ( ) : void
UpdateCenterY ( ) : void

Method Details

CenteredContentControl() public méthode

Instance constructor.
public CenteredContentControl ( ) : System.Windows
Résultat System.Windows

OnPropertyChanged() protected méthode

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

Property Details

CenterXProperty public_oe static_oe property

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

CenterYProperty public_oe static_oe property

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