CreateVisualSnapshot(Visual, TreeComparisonOptions?) Method

Definition

Assembly HeadlessTestingFramework.dll

Creates a snapshot of a visual tree structure.

public static TreeSnapshot CreateVisualSnapshot(Visual root, TreeComparisonOptions? options = null)

Parameters

root
Avalonia.Visual

The root visual.

options
TreeComparisonOptions

Snapshot options.

Returns

TreeSnapshot
A tree snapshot.