GetVisualParent Method
Gets the common visual parent of the two control.
Definition
Namespace: Avalonia.Animation
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
protected static Visual GetVisualParent(
Visual? from,
Visual? to
)
Protected Shared Function GetVisualParent (
from As Visual,
to As Visual
) As Visual
static member GetVisualParent :
from : Visual *
to : Visual -> Visual
Parameters
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. |