Table of Contents

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

DependencyProperty

Content2DProperty

public static readonly DependencyProperty Content2DProperty

Field Value

DependencyProperty

ForegroundProperty

public static readonly DependencyProperty ForegroundProperty

Field Value

DependencyProperty

HorizontalContentAlignmentProperty

public static readonly DependencyProperty HorizontalContentAlignmentProperty

Field Value

DependencyProperty

VerticalContentAlignmentProperty

public static readonly DependencyProperty VerticalContentAlignmentProperty

Field Value

DependencyProperty

Properties

Background

public Brush Background { get; set; }

Property Value

Brush

Content2D

[Bindable(true)]
public object? Content2D { get; set; }

Property Value

object

Foreground

public Brush Foreground { get; set; }

Property Value

Brush

HorizontalContentAlignment

public HorizontalAlignment HorizontalContentAlignment { get; set; }

Property Value

HorizontalAlignment

VerticalContentAlignment

public VerticalAlignment VerticalContentAlignment { get; set; }

Property Value

VerticalAlignment

Methods

OnAttached()

protected override void OnAttached()

OnUpdate(RenderContext2D)

protected override void OnUpdate(RenderContext2D context)

Parameters

context RenderContext2D

SetupBindings(Element2D)

protected void SetupBindings(Element2D content)

Parameters

content Element2D