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
-
AvaloniaObjectAnimatableStyledElementVisualLayoutableInteractiveInputElementControlElement2D
- Implements
-
IDataContextProviderILogicalIThemeVariantHostIResourceHostIResourceNodeIStyleHostISetLogicalParentISetInheritanceParentIStyleableINamedIInputElementIDataTemplateHostISetterValue
- Derived
- Inherited Members
-
Control.FocusAdornerPropertyControl.TagPropertyControl.ContextMenuPropertyControl.ContextFlyoutPropertyControl.RequestBringIntoViewEventControl.ContextRequestedEventControl.LoadedEventControl.UnloadedEventControl.SizeChangedEventControl.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.FocusAdornerControl.DataTemplatesControl.ContextMenuControl.ContextFlyoutControl.IsLoadedControl.TagControl.ContextRequestedControl.LoadedControl.UnloadedControl.SizeChangedInputElement.FocusablePropertyInputElement.IsEnabledPropertyInputElement.IsEffectivelyEnabledPropertyInputElement.CursorPropertyInputElement.IsKeyboardFocusWithinPropertyInputElement.IsFocusedPropertyInputElement.IsPointerOverPropertyInputElement.IsTabStopPropertyInputElement.GotFocusEventInputElement.LostFocusEventInputElement.KeyDownEventInputElement.KeyUpEventInputElement.TabIndexPropertyInputElement.TextInputEventInputElement.TextInputMethodClientRequestedEventInputElement.PointerEnteredEventInputElement.PointerExitedEventInputElement.PointerMovedEventInputElement.PointerPressedEventInputElement.PointerReleasedEventInputElement.PointerCaptureLostEventInputElement.PointerWheelChangedEventInputElement.TappedEventInputElement.HoldingEventInputElement.DoubleTappedEventInputElement.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.FocusableInputElement.IsEnabledInputElement.CursorInputElement.IsKeyboardFocusWithinInputElement.IsFocusedInputElement.IsPointerOverInputElement.IsTabStopInputElement.IsEffectivelyEnabledInputElement.TabIndexInputElement.KeyBindingsInputElement.IsEnabledCoreInputElement.GestureRecognizersInputElement.GotFocusInputElement.LostFocusInputElement.KeyDownInputElement.KeyUpInputElement.TextInputInputElement.TextInputMethodClientRequestedInputElement.PointerEnteredInputElement.PointerExitedInputElement.PointerMovedInputElement.PointerPressedInputElement.PointerReleasedInputElement.PointerCaptureLostInputElement.PointerWheelChangedInputElement.TappedInputElement.HoldingInputElement.DoubleTappedInteractive.RaiseEvent(RoutedEventArgs)Interactive.BuildEventRoute(RoutedEvent)Layoutable.DesiredSizePropertyLayoutable.MinWidthPropertyLayoutable.MaxWidthPropertyLayoutable.MinHeightPropertyLayoutable.MaxHeightPropertyLayoutable.UseLayoutRoundingPropertyLayoutable.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.MinWidthLayoutable.MaxWidthLayoutable.MinHeightLayoutable.MaxHeightLayoutable.DesiredSizeLayoutable.IsMeasureValidLayoutable.IsArrangeValidLayoutable.UseLayoutRoundingLayoutable.EffectiveViewportChangedLayoutable.LayoutUpdatedVisual.BoundsPropertyVisual.ClipToBoundsPropertyVisual.ClipPropertyVisual.IsVisiblePropertyVisual.OpacityPropertyVisual.OpacityMaskPropertyVisual.EffectPropertyVisual.HasMirrorTransformPropertyVisual.RenderTransformPropertyVisual.FlowDirectionPropertyVisual.VisualParentPropertyVisual.ZIndexPropertyVisual.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.BoundsVisual.ClipToBoundsVisual.ClipVisual.IsEffectivelyVisibleVisual.IsVisibleVisual.OpacityVisual.OpacityMaskVisual.EffectVisual.HasMirrorTransformVisual.RenderTransformVisual.FlowDirectionVisual.ZIndexVisual.VisualChildrenVisual.VisualRootVisual.BypassFlowDirectionPoliciesVisual.AttachedToVisualTreeVisual.DetachedFromVisualTreeStyledElement.DataContextPropertyStyledElement.NamePropertyStyledElement.ParentPropertyStyledElement.TemplatedParentPropertyStyledElement.ThemePropertyStyledElement.BeginInit()StyledElement.EndInit()StyledElement.ApplyStyling()StyledElement.InitializeIfNeeded()StyledElement.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)StyledElement.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)StyledElement.OnDataContextBeginUpdate()StyledElement.OnDataContextEndUpdate()StyledElement.OnInitialized()StyledElement.NameStyledElement.ClassesStyledElement.DataContextStyledElement.IsInitializedStyledElement.StylesStyledElement.StyleKeyStyledElement.ResourcesStyledElement.TemplatedParentStyledElement.ThemeStyledElement.LogicalChildrenStyledElement.PseudoClassesStyledElement.StyleKeyOverrideStyledElement.ParentStyledElement.ActualThemeVariantStyledElement.AttachedToLogicalTreeStyledElement.DetachedFromLogicalTreeStyledElement.DataContextChangedStyledElement.InitializedStyledElement.ResourcesChangedStyledElement.ActualThemeVariantChangedAnimatable.TransitionsPropertyAnimatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)Animatable.TransitionsAvaloniaObject.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.InheritanceParentAvaloniaObject.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
Height
public double Height { get; set; }
Property Value
HorizontalAlignment
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
- HorizontalAlignment
IsHitTestVisible
public bool IsHitTestVisible { get; set; }
Property Value
IsMouseOver
Gets or sets a value indicating whether this instance is mouse over2 d.
public bool IsMouseOver { get; set; }
Property Value
- bool
trueif 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
MaximumWidth
public double MaximumWidth { get; set; }
Property Value
MinimumHeight
public double MinimumHeight { get; set; }
Property Value
MinimumWidth
public double MinimumWidth { get; set; }
Property Value
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
Width
public double Width { get; set; }
Property Value
Methods
OnMouseEnter2D(Mouse2DEventArgs?)
public virtual void OnMouseEnter2D(Mouse2DEventArgs? e)
Parameters
OnMouseLeave2D(Mouse2DEventArgs?)
public virtual void OnMouseLeave2D(Mouse2DEventArgs? e)
Parameters
OnMouseOverChanged(bool, bool)
protected virtual void OnMouseOverChanged(bool newValue, bool oldValue)
Parameters
Events
MouseDown2D
public event Element2D.Mouse2DRoutedEventHandler MouseDown2D
Event Type
MouseEnter2D
public event Element2D.Mouse2DRoutedEventHandler MouseEnter2D
Event Type
MouseLeave2D
public event Element2D.Mouse2DRoutedEventHandler MouseLeave2D
Event Type
MouseMove2D
public event Element2D.Mouse2DRoutedEventHandler MouseMove2D
Event Type
MouseUp2D
public event Element2D.Mouse2DRoutedEventHandler MouseUp2D
Event Type
Operators
implicit operator Element2D?(SceneNode2D)
public static implicit operator Element2D?(SceneNode2D s)