Class VisualWrapper<T>
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
The VisualWrapper simply integrates a raw Visual child into a tree of FrameworkElements. https://blogs.msdn.microsoft.com/dwayneneed/2007/04/26/multithreaded-ui-hostvisual/
public class VisualWrapper<T> : FrameworkElement, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient where T : Visual
Type Parameters
T
- Inheritance
-
VisualWrapper<T>
- Implements
- Derived
- Inherited Members
Properties
Child
public T? Child { get; set; }
Property Value
- T
VisualChildrenCount
Gets the number of visual child elements within this element.
protected override int VisualChildrenCount { get; }
Property Value
- int
The number of visual child elements for this element.
Methods
GetVisualChild(int)
Overrides GetVisualChild(int), and returns a child at the specified index from a collection of child elements.
protected override Visual GetVisualChild(int index)
Parameters
indexintThe zero-based index of the requested child element in the collection.