Returns the common ancestor of two visual objects.
Public Function FindCommonVisualAncestor ( _ otherVisual As DependencyObject _ ) As DependencyObject
Dim instance As Visual Dim otherVisual As DependencyObject Dim returnValue As DependencyObject returnValue = instance.FindCommonVisualAncestor(otherVisual)
public DependencyObject FindCommonVisualAncestor( DependencyObject otherVisual )
public: DependencyObject^ FindCommonVisualAncestor( DependencyObject^ otherVisual )
public function FindCommonVisualAncestor( otherVisual : DependencyObject ) : DependencyObject
You cannot use methods in XAML.
2D and 3D objects can have common visual ancestors, so it is possible to pass a Visual3D for otherVisual.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003