Visual.FindCommonVisualAncestor(DependencyObject) 메서드
정의
두 시각적 개체의 공통 상위 항목을 반환합니다.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
매개 변수
- otherVisual
- DependencyObject
DependencyObject 형식의 시각적 개체입니다.A visual object of type DependencyObject.
반환
시각적 개체와 otherVisual
의 공통 상위 항목(있는 경우)이고, 그렇지 않으면 null
입니다.The common ancestor of the visual object and otherVisual
if one exists; otherwise, null
.
설명
2D 및 3D 개체는 일반적인 시각적 상위 항목을 가질 수 있으므로에를 전달할 수 Visual3D 있습니다 otherVisual
.2D and 3D objects can have common visual ancestors, so it is possible to pass a Visual3D for otherVisual
.