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
LeftProperty
The left property
public static readonly DependencyProperty LeftProperty
Field Value
RightProperty
The right property
public static readonly DependencyProperty RightProperty
Field Value
TopProperty
The top property
public static readonly DependencyProperty TopProperty
Field Value
Methods
GetBottom(Element2DCore)
Gets the bottom.
public static double GetBottom(Element2DCore element)
Parameters
elementElement2DCoreThe element.
Returns
GetLeft(Element2DCore)
Gets the left.
public static double GetLeft(Element2DCore element)
Parameters
elementElement2DCoreThe element.
Returns
GetRight(Element2DCore)
Gets the right.
public static double GetRight(Element2DCore element)
Parameters
elementElement2DCoreThe element.
Returns
GetTop(Element2DCore)
Gets the top.
public static double GetTop(Element2DCore element)
Parameters
elementElement2DCoreThe element.
Returns
OnCreateSceneNode()
Called when [create scene node].
protected override SceneNode2D OnCreateSceneNode()
Returns
SetBottom(Element2DCore, double)
Sets the bottom.
public static void SetBottom(Element2DCore element, double value)
Parameters
elementElement2DCoreThe element.
valuedoubleThe value.
SetLeft(Element2DCore, double)
Sets the left.
public static void SetLeft(Element2DCore element, double value)
Parameters
elementElement2DCoreThe element.
valuedoubleThe value.
SetRight(Element2DCore, double)
Sets the right.
public static void SetRight(Element2DCore element, double value)
Parameters
elementElement2DCoreThe element.
valuedoubleThe value.
SetTop(Element2DCore, double)
Sets the top.
public static void SetTop(Element2DCore element, double value)
Parameters
elementElement2DCoreThe element.
valuedoubleThe value.