MindFusion.Wpf Pack Programmer's Guide
Utilities.FindAncestor Method
See Also
 





Finds visual tree ancestor of the specified type.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static DependencyObject FindAncestor (
    DependencyObject descendent,
    Type t
)

Visual Basic  Copy Code

Public Shared Function FindAncestor( _
    descendent As DependencyObject, _
    t As Type _
) As DependencyObject

 Parameters

descendent
The object whose ancestor to find.
t
System.Type object specifying what kind of ancestor to look for.

 Return Value

A DependencyObject that is an ancestor of the specified object.

 See Also

Utilities Members
Utilities Class
MindFusion Namespace