Intersoft ClientUI Documentation
FindVisualAncestor Method (Utility)



Source.
Ancestor type.
Finds the ancestor visual element of the specified source which matches the given type.
Syntax
Public Shared Function FindVisualAncestor( _
   ByVal source As DependencyObject, _
   ByVal ancestorType As Type _
) As DependencyObject
Dim source As DependencyObject
Dim ancestorType As Type
Dim value As DependencyObject
 
value = Utility.FindVisualAncestor(source, ancestorType)
public static DependencyObject FindVisualAncestor( 
   DependencyObject source,
   Type ancestorType
)
public:
static DependencyObject^ FindVisualAncestor( 
   DependencyObject^ source,
   Type^ ancestorType
) 

Parameters

source
Source.
ancestorType
Ancestor type.

Return Value

Visual ancestor.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Utility Class
Utility Members

Send Feedback