Visual.FindCommonVisualAncestor(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- otherVisual
- DependencyObject
A visual object of type DependencyObject.
Returns
The common ancestor of the visual object and otherVisual
if one exists; otherwise, null
.
Remarks
2D and 3D objects can have common visual ancestors, so it is possible to pass a Visual3D for otherVisual
.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.