C# Класс GestSpace.Controls.HexCanvas

Follow steps 1a or 1b and then 2 to use this custom control in a XAML file. Step 1a) Using this custom control in a XAML file that exists in the current project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:GestSpace.Controls" Step 1b) Using this custom control in a XAML file that exists in a different project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:GestSpace.Controls;assembly=GestSpace.Controls" You will also need to add a project reference from the project where the XAML file lives to this project and Rebuild to avoid compilation errors: Right click on the target project in the Solution Explorer and "Add Reference"->"Projects"->[Browse to and select this project] Step 2) Go ahead and use your control in the XAML file.
Наследование: System.Windows.Controls.Panel
Показать файл Открыть проект

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

Свойство Тип Описание
GutterSizeProperty System.Windows.DependencyProperty
LeftHexProperty System.Windows.DependencyProperty
TopHexProperty System.Windows.DependencyProperty

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

Метод Описание
GetLeftHex ( DependencyObject obj ) : int
GetTopHex ( DependencyObject obj ) : int
SetLeftHex ( DependencyObject obj, int value ) : void
SetTopHex ( DependencyObject obj, int value ) : void

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

Метод Описание
ArrangeOverride ( Size arrangeSize ) : Size
MeasureOverride ( Size constraint ) : Size
OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void

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

Метод Описание
HexCanvas ( ) : System
OnGuttenSizeChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs args ) : void

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

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

protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size
Результат System.Windows.Size

GetLeftHex() публичный статический Метод

public static GetLeftHex ( DependencyObject obj ) : int
obj System.Windows.DependencyObject
Результат int

GetTopHex() публичный статический Метод

public static GetTopHex ( DependencyObject obj ) : int
obj System.Windows.DependencyObject
Результат int

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

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
Результат System.Windows.Size

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

protected OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void
visualAdded System.Windows.DependencyObject
visualRemoved System.Windows.DependencyObject
Результат void

SetLeftHex() публичный статический Метод

public static SetLeftHex ( DependencyObject obj, int value ) : void
obj System.Windows.DependencyObject
value int
Результат void

SetTopHex() публичный статический Метод

public static SetTopHex ( DependencyObject obj, int value ) : void
obj System.Windows.DependencyObject
value int
Результат void

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

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

public static DependencyProperty,System.Windows GutterSizeProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows LeftHexProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows TopHexProperty
Результат System.Windows.DependencyProperty