Bearbeiten

Freigeben über


Visual3D.FindCommonVisualAncestor(DependencyObject) Method

Definition

Returns the common ancestor of the visual object and another specified visual object.

public:
 System::Windows::DependencyObject ^ FindCommonVisualAncestor(System::Windows::DependencyObject ^ otherVisual);
public System.Windows.DependencyObject FindCommonVisualAncestor (System.Windows.DependencyObject otherVisual);
member this.FindCommonVisualAncestor : System.Windows.DependencyObject -> System.Windows.DependencyObject
Public Function FindCommonVisualAncestor (otherVisual As DependencyObject) As DependencyObject

Parameters

otherVisual
DependencyObject

The visual object with which to find a common ancestor.

Returns

The common ancestor of the current visual object and otherVisual; or null if no common ancestor is found.

Applies to