Visual.

TransformToVisual(IVisual) Method

Summary

Returns a transform that transforms the visual's coordinates into the coordinates of the specified visual.
Namespace
Avalonia
Containing Type
Visual

Syntax

public Matrix? TransformToVisual(IVisual visual)

Parameters

Name Type Description
visual IVisual The visual to translate the coordinates to.

Return Value

Type Description
Matrix? A Matrix containing the transform or null if the visuals don't share a common ancestor.