RingSoft.DataEntryControls.Engine.Annotations Namespace
RingSoft.DataEntryControls.WPF Namespace

ExtensionMethods..::..GetParentOfType<(Of <(<'T>)>)> Method (DependencyObject)

Gets the type of the parent of.

Namespace:  RingSoft.DataEntryControls.WPF
Assembly:  RingSoft.DataEntryControls.WPF (in RingSoft.DataEntryControls.WPF.dll)

Syntax


public static T GetParentOfType<T>(
	this DependencyObject element
)
where T : DependencyObject
<ExtensionAttribute> _
Public Shared Function GetParentOfType(Of T As DependencyObject) ( _
	element As DependencyObject _
) As T
[ExtensionAttribute]
public:
generic<typename T>
where T : DependencyObject
static T GetParentOfType(
	DependencyObject^ element
)

Type Parameters

T

Parameters

element
Type: DependencyObject
The element.

Return Value

T.