Table of Contents

Class Element2D

Namespace
HelixToolkit.Avalonia.SharpDX.Elements2D
Assembly
HelixToolkit.Avalonia.SharpDX.dll
public abstract class Element2D : Element2DCore, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, IDisposable, ITransformable2D, IHitable2D
Inheritance
AvaloniaObject
Animatable
StyledElement
Visual
Layoutable
Interactive
InputElement
Control
Element2D
Implements
IDataContextProvider
ILogical
IThemeVariantHost
IResourceHost
IResourceNode
IStyleHost
ISetLogicalParent
ISetInheritanceParent
IStyleable
INamed
IInputElement
IDataTemplateHost
ISetterValue
Derived
Inherited Members
Control.FocusAdornerProperty
Control.TagProperty
Control.ContextMenuProperty
Control.ContextFlyoutProperty
Control.RequestBringIntoViewEvent
Control.ContextRequestedEvent
Control.LoadedEvent
Control.UnloadedEvent
Control.SizeChangedEvent
Control.GetTemplateFocusTarget()
Control.OnLoaded(RoutedEventArgs)
Control.OnUnloaded(RoutedEventArgs)
Control.OnSizeChanged(SizeChangedEventArgs)
Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnGotFocus(GotFocusEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.OnCreateAutomationPeer()
Control.OnPointerReleased(PointerReleasedEventArgs)
Control.OnKeyUp(KeyEventArgs)
Control.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Control.FocusAdorner
Control.DataTemplates
Control.ContextMenu
Control.ContextFlyout
Control.IsLoaded
Control.Tag
Control.ContextRequested
Control.Loaded
Control.Unloaded
Control.SizeChanged
InputElement.FocusableProperty
InputElement.IsEnabledProperty
InputElement.IsEffectivelyEnabledProperty
InputElement.CursorProperty
InputElement.IsKeyboardFocusWithinProperty
InputElement.IsFocusedProperty
InputElement.IsPointerOverProperty
InputElement.IsTabStopProperty
InputElement.GotFocusEvent
InputElement.LostFocusEvent
InputElement.KeyDownEvent
InputElement.KeyUpEvent
InputElement.TabIndexProperty
InputElement.TextInputEvent
InputElement.TextInputMethodClientRequestedEvent
InputElement.PointerEnteredEvent
InputElement.PointerExitedEvent
InputElement.PointerMovedEvent
InputElement.PointerPressedEvent
InputElement.PointerReleasedEvent
InputElement.PointerCaptureLostEvent
InputElement.PointerWheelChangedEvent
InputElement.TappedEvent
InputElement.HoldingEvent
InputElement.DoubleTappedEvent
InputElement.Focus(NavigationMethod, KeyModifiers)
InputElement.OnKeyDown(KeyEventArgs)
InputElement.OnTextInput(TextInputEventArgs)
InputElement.OnPointerEntered(PointerEventArgs)
InputElement.OnPointerExited(PointerEventArgs)
InputElement.OnPointerMoved(PointerEventArgs)
InputElement.OnPointerPressed(PointerPressedEventArgs)
InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)
InputElement.OnPointerWheelChanged(PointerWheelEventArgs)
InputElement.UpdateIsEffectivelyEnabled()
InputElement.Focusable
InputElement.IsEnabled
InputElement.Cursor
InputElement.IsKeyboardFocusWithin
InputElement.IsFocused
InputElement.IsPointerOver
InputElement.IsTabStop
InputElement.IsEffectivelyEnabled
InputElement.TabIndex
InputElement.KeyBindings
InputElement.IsEnabledCore
InputElement.GestureRecognizers
InputElement.GotFocus
InputElement.LostFocus
InputElement.KeyDown
InputElement.KeyUp
InputElement.TextInput
InputElement.TextInputMethodClientRequested
InputElement.PointerEntered
InputElement.PointerExited
InputElement.PointerMoved
InputElement.PointerPressed
InputElement.PointerReleased
InputElement.PointerCaptureLost
InputElement.PointerWheelChanged
InputElement.Tapped
InputElement.Holding
InputElement.DoubleTapped
Interactive.RaiseEvent(RoutedEventArgs)
Interactive.BuildEventRoute(RoutedEvent)
Layoutable.DesiredSizeProperty
Layoutable.MinWidthProperty
Layoutable.MaxWidthProperty
Layoutable.MinHeightProperty
Layoutable.MaxHeightProperty
Layoutable.UseLayoutRoundingProperty
Layoutable.UpdateLayout()
Layoutable.ApplyTemplate()
Layoutable.Measure(Size)
Layoutable.Arrange(Rect)
Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])
Layoutable.AffectsArrange<T>(params AvaloniaProperty[])
Layoutable.MeasureCore(Size)
Layoutable.MeasureOverride(Size)
Layoutable.ArrangeCore(Rect)
Layoutable.ArrangeOverride(Size)
Layoutable.OnMeasureInvalidated()
Layoutable.OnVisualParentChanged(Visual, Visual)
Layoutable.MinWidth
Layoutable.MaxWidth
Layoutable.MinHeight
Layoutable.MaxHeight
Layoutable.DesiredSize
Layoutable.IsMeasureValid
Layoutable.IsArrangeValid
Layoutable.UseLayoutRounding
Layoutable.EffectiveViewportChanged
Layoutable.LayoutUpdated
Visual.BoundsProperty
Visual.ClipToBoundsProperty
Visual.ClipProperty
Visual.IsVisibleProperty
Visual.OpacityProperty
Visual.OpacityMaskProperty
Visual.EffectProperty
Visual.HasMirrorTransformProperty
Visual.RenderTransformProperty
Visual.FlowDirectionProperty
Visual.VisualParentProperty
Visual.ZIndexProperty
Visual.GetFlowDirection(Visual)
Visual.SetFlowDirection(Visual, FlowDirection)
Visual.InvalidateVisual()
Visual.Render(DrawingContext)
Visual.AffectsRender<T>(params AvaloniaProperty[])
Visual.OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)
Visual.OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)
Visual.InvalidateMirrorTransform()
Visual.Bounds
Visual.ClipToBounds
Visual.Clip
Visual.IsEffectivelyVisible
Visual.IsVisible
Visual.Opacity
Visual.OpacityMask
Visual.Effect
Visual.HasMirrorTransform
Visual.RenderTransform
Visual.FlowDirection
Visual.ZIndex
Visual.VisualChildren
Visual.VisualRoot
Visual.BypassFlowDirectionPolicies
Visual.AttachedToVisualTree
Visual.DetachedFromVisualTree
StyledElement.DataContextProperty
StyledElement.NameProperty
StyledElement.ParentProperty
StyledElement.TemplatedParentProperty
StyledElement.ThemeProperty
StyledElement.BeginInit()
StyledElement.EndInit()
StyledElement.ApplyStyling()
StyledElement.InitializeIfNeeded()
StyledElement.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
StyledElement.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)
StyledElement.OnDataContextBeginUpdate()
StyledElement.OnDataContextEndUpdate()
StyledElement.OnInitialized()
StyledElement.Name
StyledElement.Classes
StyledElement.DataContext
StyledElement.IsInitialized
StyledElement.Styles
StyledElement.StyleKey
StyledElement.Resources
StyledElement.TemplatedParent
StyledElement.Theme
StyledElement.LogicalChildren
StyledElement.PseudoClasses
StyledElement.StyleKeyOverride
StyledElement.Parent
StyledElement.ActualThemeVariant
StyledElement.AttachedToLogicalTree
StyledElement.DetachedFromLogicalTree
StyledElement.DataContextChanged
StyledElement.Initialized
StyledElement.ResourcesChanged
StyledElement.ActualThemeVariantChanged
Animatable.TransitionsProperty
Animatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
Animatable.Transitions
AvaloniaObject.CheckAccess()
AvaloniaObject.VerifyAccess()
AvaloniaObject.ClearValue(AvaloniaProperty)
AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)
AvaloniaObject.ClearValue<T>(StyledProperty<T>)
AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetHashCode()
AvaloniaObject.GetValue(AvaloniaProperty)
AvaloniaObject.GetValue<T>(StyledProperty<T>)
AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)
AvaloniaObject.IsAnimating(AvaloniaProperty)
AvaloniaObject.IsSet(AvaloniaProperty)
AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)
AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)
AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)
AvaloniaObject.Bind(AvaloniaProperty, IBinding)
AvaloniaObject.CoerceValue(AvaloniaProperty)
AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)
AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)
AvaloniaObject.InheritanceParent
AvaloniaObject.this[AvaloniaProperty]
AvaloniaObject.this[IndexerDescriptor]
AvaloniaObject.PropertyChanged

Constructors

Element2D()

public Element2D()

Fields

EnableBitmapCacheProperty

public static readonly AvaloniaProperty EnableBitmapCacheProperty

Field Value

AvaloniaProperty

HeightProperty

public static readonly AvaloniaProperty HeightProperty

Field Value

AvaloniaProperty

HorizontalAlignmentProperty

public static readonly AvaloniaProperty HorizontalAlignmentProperty

Field Value

AvaloniaProperty

IsHitTestVisibleProperty

public static readonly AvaloniaProperty IsHitTestVisibleProperty

Field Value

AvaloniaProperty

IsMouseOverProperty

The is mouse over2 d property

public static readonly AvaloniaProperty IsMouseOverProperty

Field Value

AvaloniaProperty

MarginProperty

public static readonly AvaloniaProperty MarginProperty

Field Value

AvaloniaProperty

MaximumHeightProperty

public static readonly AvaloniaProperty MaximumHeightProperty

Field Value

AvaloniaProperty

MaximumWidthProperty

public static readonly AvaloniaProperty MaximumWidthProperty

Field Value

AvaloniaProperty

MinimumHeightProperty

public static readonly AvaloniaProperty MinimumHeightProperty

Field Value

AvaloniaProperty

MinimumWidthProperty

public static readonly AvaloniaProperty MinimumWidthProperty

Field Value

AvaloniaProperty

MouseDown2DEvent

public static readonly RoutedEvent<Mouse2DEventArgs> MouseDown2DEvent

Field Value

RoutedEvent<Mouse2DEventArgs>

MouseEnter2DEvent

public static readonly RoutedEvent<Mouse2DEventArgs> MouseEnter2DEvent

Field Value

RoutedEvent<Mouse2DEventArgs>

MouseLeave2DEvent

public static readonly RoutedEvent<Mouse2DEventArgs> MouseLeave2DEvent

Field Value

RoutedEvent<Mouse2DEventArgs>

MouseMove2DEvent

public static readonly RoutedEvent<Mouse2DEventArgs> MouseMove2DEvent

Field Value

RoutedEvent<Mouse2DEventArgs>

MouseUp2DEvent

public static readonly RoutedEvent<Mouse2DEventArgs> MouseUp2DEvent

Field Value

RoutedEvent<Mouse2DEventArgs>

RenderTransformOriginProperty

public static readonly AvaloniaProperty RenderTransformOriginProperty

Field Value

AvaloniaProperty

TransformProperty

public static readonly AvaloniaProperty TransformProperty

Field Value

AvaloniaProperty

VerticalAlignmentProperty

public static readonly AvaloniaProperty VerticalAlignmentProperty

Field Value

AvaloniaProperty

VisibilityProperty

public static readonly AvaloniaProperty VisibilityProperty

Field Value

AvaloniaProperty

WidthProperty

public static readonly AvaloniaProperty WidthProperty

Field Value

AvaloniaProperty

Properties

EnableBitmapCache

public bool EnableBitmapCache { get; set; }

Property Value

bool

Height

public double Height { get; set; }

Property Value

double

HorizontalAlignment

public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

IsHitTestVisible

public bool IsHitTestVisible { get; set; }

Property Value

bool

IsMouseOver

Gets or sets a value indicating whether this instance is mouse over2 d.

public bool IsMouseOver { get; set; }

Property Value

bool

true if this instance is mouse over2 d; otherwise, false.

Margin

public Thickness Margin { get; set; }

Property Value

Thickness

MaximumHeight

public double MaximumHeight { get; set; }

Property Value

double

MaximumWidth

public double MaximumWidth { get; set; }

Property Value

double

MinimumHeight

public double MinimumHeight { get; set; }

Property Value

double

MinimumWidth

public double MinimumWidth { get; set; }

Property Value

double

RenderTransformOrigin

public Point RenderTransformOrigin { get; set; }

Property Value

Point

Transform

Render transform

public Transform? Transform { get; set; }

Property Value

Transform

VerticalAlignment

public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

Visibility

public bool Visibility { get; set; }

Property Value

bool

Width

public double Width { get; set; }

Property Value

double

Methods

OnMouseEnter2D(Mouse2DEventArgs?)

public virtual void OnMouseEnter2D(Mouse2DEventArgs? e)

Parameters

e Mouse2DEventArgs

OnMouseLeave2D(Mouse2DEventArgs?)

public virtual void OnMouseLeave2D(Mouse2DEventArgs? e)

Parameters

e Mouse2DEventArgs

OnMouseOverChanged(bool, bool)

protected virtual void OnMouseOverChanged(bool newValue, bool oldValue)

Parameters

newValue bool
oldValue bool

Events

MouseDown2D

public event Element2D.Mouse2DRoutedEventHandler MouseDown2D

Event Type

Element2D.Mouse2DRoutedEventHandler

MouseEnter2D

public event Element2D.Mouse2DRoutedEventHandler MouseEnter2D

Event Type

Element2D.Mouse2DRoutedEventHandler

MouseLeave2D

public event Element2D.Mouse2DRoutedEventHandler MouseLeave2D

Event Type

Element2D.Mouse2DRoutedEventHandler

MouseMove2D

public event Element2D.Mouse2DRoutedEventHandler MouseMove2D

Event Type

Element2D.Mouse2DRoutedEventHandler

MouseUp2D

public event Element2D.Mouse2DRoutedEventHandler MouseUp2D

Event Type

Element2D.Mouse2DRoutedEventHandler

Operators

implicit operator Element2D?(SceneNode2D)

public static implicit operator Element2D?(SceneNode2D s)

Parameters

s SceneNode2D

Returns

Element2D