Skip to main content

GetVisualParent Method

Gets the common visual parent of the two control.

Definition

Namespace: Avalonia.Animation
Assembly: Avalonia.Base (in Avalonia.Base.dll)

protected static Visual GetVisualParent(
Visual? from,
Visual? to
)

Parameters

  Visual
The from control.
  Visual
The to control.

Return Value

Visual
The common parent.

Remarks

Any one of the parameters may be null, but not both.

Exceptions

ArgumentExceptionThe two controls do not share a common parent.

See Also

Reference

PageSlide Class
Avalonia.Animation Namespace