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