PageSlideGetVisualParent Method

Gets the common visual parent of the two control.

Definition

Namespace: Avalonia.Animation
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
protected static Visual GetVisualParent(
	Visual? from,
	Visual? to
)

Parameters

from  Visual
The from control.
to  Visual
The to control.

Return Value

Visual
The common parent.

Remarks

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

Exceptions

ArgumentException The two controls do not share a common parent.

See Also