C# Класс 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.
Наследование: System.Windows.Controls.ContentControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CenterXProperty System.Windows.DependencyProperty
CenterYProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
CenteredContentControl ( ) : System.Windows

Instance constructor.

Защищенные методы

Метод Описание
OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Updates the CenterX and CenterY properties.

Приватные методы

Метод Описание
UpdateCenterX ( ) : void
UpdateCenterY ( ) : void

Описание методов

CenteredContentControl() публичный Метод

Instance constructor.
public CenteredContentControl ( ) : System.Windows
Результат System.Windows

OnPropertyChanged() защищенный Метод

Updates the CenterX and CenterY properties.
protected OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
Результат void

Описание свойств

CenterXProperty публичное статическое свойство

Identifier for the read-only CenterX dependency property.
public static DependencyProperty,System.Windows CenterXProperty
Результат System.Windows.DependencyProperty

CenterYProperty публичное статическое свойство

Identifier for the read-only CenterX dependency property.
public static DependencyProperty,System.Windows CenterYProperty
Результат System.Windows.DependencyProperty