Intersoft ClientUI Documentation
FindVisualAncestor Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > Utility Class : FindVisualAncestor Method






source
Source.
ancestorType
Ancestor type.
Finds the ancestor visual element of the specified source which matches the given type.

Syntax

Visual Basic (Declaration) 
Public Shared Function FindVisualAncestor( _
   ByVal source As DependencyObject, _
   ByVal ancestorType As Type _
) As DependencyObject
Visual Basic (Usage)Copy Code
Dim source As DependencyObject
Dim ancestorType As Type
Dim value As DependencyObject
 
value = Utility.FindVisualAncestor(source, ancestorType)
C# 
public static DependencyObject FindVisualAncestor( 
   DependencyObject source,
   Type ancestorType
)
Delphi 
public function FindVisualAncestor( 
    source: DependencyObject;
    ancestorType: Type
): DependencyObject; static; 
JScript 
public static function FindVisualAncestor( 
   source : DependencyObject,
   ancestorType : Type
) : DependencyObject;
Managed Extensions for C++ 
public: static DependencyObject* FindVisualAncestor( 
   DependencyObject* source,
   Type* ancestorType
) 
C++/CLI 
public:
static DependencyObject^ FindVisualAncestor( 
   DependencyObject^ source,
   Type^ ancestorType
) 

Parameters

source
Source.
ancestorType
Ancestor type.

Return Value

Visual ancestor.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.