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
파일 보기 프로젝트 열기: NicolasDorier/GestSpace

공개 프로퍼티들

프로퍼티 타입 설명
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