ComponentOne Basic Library for WPF and Silverlight
FindParent<T> Method (Extensions)


C1.Silverlight Namespace > Extensions Class : FindParent<T> Method
Finds the first parent of a given type for a particular FrameworkElement
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function FindParent(Of T As System.Windows.FrameworkElement)( _
   ByVal elem As System.Windows.FrameworkElement _
) As T
'Usage
 
Dim elem As System.Windows.FrameworkElement
Dim value As T
 
value = Extensions.FindParent(Of T)(elem)
[System.Runtime.CompilerServices.Extension()]
public static T FindParent<T>( 
   System.Windows.FrameworkElement elem
)
where T: System.Windows.FrameworkElement

Parameters

elem

Type Parameters

T

Return Value

The first object whose type is The first object whose type is
See Also

Reference

Extensions Class
Extensions Members