Class VisualTreeHandler
public class VisualTreeHandler
- Inheritance
-
VisualTreeHandler
- Inherited Members
- Extension Methods
Fields
ActiveTree
This is used for rendering
protected VisualLayer ActiveTree
Field Value
PreparedTree
This is prepared and can be used to replace ActiveTree
protected VisualLayer PreparedTree
Field Value
Properties
IsReady
public bool IsReady { get; }
Property Value
WasRendered
public bool WasRendered { get; }
Property Value
Methods
DumpActiveTree()
public void DumpActiveTree()
DumpPreparedTree()
public void DumpPreparedTree()
DumpTree(VisualLayer, string, bool, int)
public void DumpTree(VisualLayer node, string prefix = "", bool isLast = true, int level = 0)
Parameters
nodeVisualLayerprefixstringisLastboollevelint
PrepareRenderingTree(DrawingContext, float, float, SkiaControl)
STEP 1 (or Background thread) prepare rendering tree that will be used for rendering later.
public void PrepareRenderingTree(DrawingContext context, float widthRequest, float heightRequest, SkiaControl root)
Parameters
contextDrawingContextwidthRequestfloatheightRequestfloatrootSkiaControl
Render(DrawingContext)
STEP 2 (or Main thread) use prepared rendering tree to draw its nodes
public void Render(DrawingContext context)
Parameters
contextDrawingContext
RenderTreeInternal(DrawingContext, VisualLayer)
Used by STEP 2 RenderTree method
protected void RenderTreeInternal(DrawingContext context, VisualLayer node)
Parameters
contextDrawingContextnodeVisualLayer