Table of Contents

Class Canvas2D

Namespace
HelixToolkit.WinUI.SharpDX.Elements2D
Assembly
HelixToolkit.WinUI.SharpDX.dll

Supports both ItemsSource binding and Xaml children. Binds with ObservableElement2DCollection

public class Canvas2D : Panel2D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, ITransformable2D, IHitable2D
Inheritance
Canvas2D
Implements
IWinRTObject
Inherited Members

Fields

BottomProperty

The bottom property

public static readonly DependencyProperty BottomProperty

Field Value

DependencyProperty

LeftProperty

The left property

public static readonly DependencyProperty LeftProperty

Field Value

DependencyProperty

RightProperty

The right property

public static readonly DependencyProperty RightProperty

Field Value

DependencyProperty

TopProperty

The top property

public static readonly DependencyProperty TopProperty

Field Value

DependencyProperty

Methods

GetBottom(Element2DCore)

Gets the bottom.

public static double GetBottom(Element2DCore element)

Parameters

element Element2DCore

The element.

Returns

double

GetLeft(Element2DCore)

Gets the left.

public static double GetLeft(Element2DCore element)

Parameters

element Element2DCore

The element.

Returns

double

GetRight(Element2DCore)

Gets the right.

public static double GetRight(Element2DCore element)

Parameters

element Element2DCore

The element.

Returns

double

GetTop(Element2DCore)

Gets the top.

public static double GetTop(Element2DCore element)

Parameters

element Element2DCore

The element.

Returns

double

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode2D OnCreateSceneNode()

Returns

SceneNode2D

SetBottom(Element2DCore, double)

Sets the bottom.

public static void SetBottom(Element2DCore element, double value)

Parameters

element Element2DCore

The element.

value double

The value.

SetLeft(Element2DCore, double)

Sets the left.

public static void SetLeft(Element2DCore element, double value)

Parameters

element Element2DCore

The element.

value double

The value.

SetRight(Element2DCore, double)

Sets the right.

public static void SetRight(Element2DCore element, double value)

Parameters

element Element2DCore

The element.

value double

The value.

SetTop(Element2DCore, double)

Sets the top.

public static void SetTop(Element2DCore element, double value)

Parameters

element Element2DCore

The element.

value double

The value.