C1.WPF Namespace > VTreeHelper Class > GetParentOfType Method : GetParentOfType(DependencyObject,Type,DependencyObject,Boolean) Method |
'Declaration
Public Overloads Shared Function GetParentOfType( _ ByVal reference As DependencyObject, _ ByVal type As Type, _ ByVal endObject As DependencyObject, _ ByVal lookOutsideVisualTree As Boolean _ ) As DependencyObject
'Usage
Dim reference As DependencyObject Dim type As Type Dim endObject As DependencyObject Dim lookOutsideVisualTree As Boolean Dim value As DependencyObject value = VTreeHelper.GetParentOfType(reference, type, endObject, lookOutsideVisualTree)
public static DependencyObject GetParentOfType( DependencyObject reference, Type type, DependencyObject endObject, bool lookOutsideVisualTree )
public: static DependencyObject^ GetParentOfType( DependencyObject^ reference, Type^ type, DependencyObject^ endObject, bool lookOutsideVisualTree )
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