Visual.FindCommonVisualAncestor(DependencyObject) Método

Definição

Retorna o ancestral comum de dois objetos visuais.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

Parâmetros

otherVisual
DependencyObject

Um objeto visual do tipo DependencyObject.A visual object of type DependencyObject.

Retornos

O ancestral comum do objeto visual e otherVisual, se houver; caso contrário, null.The common ancestor of the visual object and otherVisual if one exists; otherwise, null.

Comentários

os objetos 2D e 3D podem ter ancestrais visuais comuns, portanto, é possível passar um Visual3D para otherVisual.2D and 3D objects can have common visual ancestors, so it is possible to pass a Visual3D for otherVisual.

Aplica-se a