Finds the first parent of a given type for a particular FrameworkElement
Namespace:
C1.PhoneAssembly: C1.Phone (in C1.Phone.dll)
Syntax
C# |
---|
public static T FindParent<T>( this FrameworkElement elem ) where T : FrameworkElement |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function FindParent(Of T As FrameworkElement) ( _ elem As FrameworkElement _ ) As T |
Parameters
- elem
- Type: System.Windows..::..FrameworkElement
Type Parameters
- T