ComponentOne FinancialChart for WPF
FindParent<T> Method



C1.WPF Namespace > Extensions Class : FindParent<T> Method
Finds the first parent of a given type for a particular FrameworkElement
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function FindParent(Of T As FrameworkElement)( _
   ByVal elem As FrameworkElement _
) As T
'Usage
 
Dim elem As FrameworkElement
Dim value As T
 
value = Extensions.FindParent(Of T)(elem)
[Extension()]
public static T FindParent<T>( 
   FrameworkElement elem
)
where T: FrameworkElement
[Extension()]
public:
static T^ FindParentgeneric<typename T>
( 
   FrameworkElement^ elem
) 
where T: 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