Experimental: this API is experimental and might be changed or removed in the future.

VisualElement.FindCommonAncestor

Switch to Manual

Description

Finds the lowest commont ancestor between two VisualElements inside the VisualTree hierarchy