Class ContentElement2D
- Namespace
- HelixToolkit.WinUI.SharpDX.Elements2D
- Assembly
- HelixToolkit.WinUI.SharpDX.dll
[ContentProperty(Name = "Content2D")]
public abstract class ContentElement2D : Element2D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, ITransformable2D, IHitable2D
- Inheritance
-
ContentElement2D
- Implements
-
IWinRTObject
- Derived
- Inherited Members
Fields
BackgroundProperty
public static readonly DependencyProperty BackgroundProperty
Field Value
Content2DProperty
public static readonly DependencyProperty Content2DProperty
Field Value
ForegroundProperty
public static readonly DependencyProperty ForegroundProperty
Field Value
HorizontalContentAlignmentProperty
public static readonly DependencyProperty HorizontalContentAlignmentProperty
Field Value
VerticalContentAlignmentProperty
public static readonly DependencyProperty VerticalContentAlignmentProperty
Field Value
Properties
Background
public Brush Background { get; set; }
Property Value
Content2D
[Bindable(true)]
public object? Content2D { get; set; }
Property Value
Foreground
public Brush Foreground { get; set; }
Property Value
HorizontalContentAlignment
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
VerticalContentAlignment
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
Methods
OnAttached()
protected override void OnAttached()
OnUpdate(RenderContext2D)
protected override void OnUpdate(RenderContext2D context)
Parameters
contextRenderContext2D
SetupBindings(Element2D)
protected void SetupBindings(Element2D content)
Parameters
contentElement2D