Intersoft ClientUI Documentation
FindVisualAncestor Method (Helper)



Source element.
The 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 = Helper.FindVisualAncestor(source, ancestorType)
public static DependencyObject FindVisualAncestor( 
   DependencyObject source,
   Type ancestorType
)
public:
static DependencyObject^ FindVisualAncestor( 
   DependencyObject^ source,
   Type^ ancestorType
) 

Parameters

source
Source element.
ancestorType
The ancestor type.

Return Value

Visual ancestor element.
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

Helper Class
Helper Members

Send Feedback