Visual.FindCommonVisualAncestor(DependencyObject) Visual.FindCommonVisualAncestor(DependencyObject) Visual.FindCommonVisualAncestor(DependencyObject) Visual.FindCommonVisualAncestor(DependencyObject) Method

Définition

Retourne l'ancêtre commun de deux objets visuels.Returns the common ancestor of two visual objects.

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

Paramètres

otherVisual
DependencyObject DependencyObject DependencyObject DependencyObject

Objet visuel de type DependencyObject.A visual object of type DependencyObject.

Retours

Ancêtre commun de l'objet visuel et otherVisual le cas échéant ; sinon, null.The common ancestor of the visual object and otherVisual if one exists; otherwise, null.

Remarques

Les objets 2D et 3D peuvent avoir des ancêtres de visual courants, il est possible de passer un Visual3D pour otherVisual.2D and 3D objects can have common visual ancestors, so it is possible to pass a Visual3D for otherVisual.

S’applique à