Class Element3D
- Namespace
- HelixToolkit.WinUI.SharpDX
- Assembly
- HelixToolkit.WinUI.SharpDX.dll
[TemplatePart(Name = "PART_Container", Type = typeof(ContentPresenter))]
public abstract class Element3D : Element3DCore, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, IVisible
- Inheritance
-
Element3D
- Implements
-
IWinRTObject
- Derived
- Inherited Members
- Extension Methods
Constructors
Element3D()
Initializes a new instance of the Element3D class.
public Element3D()
Fields
HxTransform3DProperty
public static readonly DependencyProperty HxTransform3DProperty
Field Value
IsRenderingProperty
Indicates, if this element should be rendered, default is true
public static readonly DependencyProperty IsRenderingProperty
Field Value
RenderOrderProperty
The render order property
public static readonly DependencyProperty RenderOrderProperty
Field Value
Properties
HxTransform3D
public Matrix4x4 HxTransform3D { get; set; }
Property Value
IsRendering
Indicates, if this element should be rendered. Use this also to make the model visible/unvisible default is true
public bool IsRendering { get; set; }
Property Value
RenderOrder
Gets or sets the manual render order.
public int RenderOrder { get; set; }
Property Value
- int
The render order.
Methods
ArrangeOverride(Size)
Provides the behavior for the "Arrange" pass of layout. Classes can override this method to define their own "Arrange" pass behavior.
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSizeSizeThe final area within the parent that this object should use to arrange itself and its children.
Returns
- Size
The actual size that is used after the element is arranged in layout.
AttachChild(FrameworkElement?)
protected void AttachChild(FrameworkElement? child)
Parameters
childFrameworkElement
DetachChild(FrameworkElement)
protected void DetachChild(FrameworkElement child)
Parameters
childFrameworkElement
MeasureOverride(Size)
Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSizeSizeThe available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Returns
- Size
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects or based on other considerations such as a fixed container size.
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected override void OnApplyTemplate()
Events
Mouse3DDown
public event EventHandler<MouseDown3DEventArgs>? Mouse3DDown
Event Type
Mouse3DMove
public event EventHandler<MouseMove3DEventArgs>? Mouse3DMove
Event Type
Mouse3DUp
public event EventHandler<MouseUp3DEventArgs>? Mouse3DUp