Click or drag to resize

ZoomBoxFindFirstVisualParentOfTypeT Method

Searches in the VisualTree from the FrameworkElement element upwards after the first parent element of type T with name == name.

Namespace: NetEti.CustomControls
Assembly: NetEti.ZoomBox (in NetEti.ZoomBox.dll) Version: 1.0.0+5ee800418dee8f46c939f296c9beaab353004ca7
Syntax
public static T FindFirstVisualParentOfType<T>(
	
	FrameworkElement element
)
where T : FrameworkElement

Parameters

element  FrameworkElement
FrameworkElement whose VisualTree is to be searched.

Type parameters

T
Type of parent element searched for.

Return value

T
Parent element of type T (and if specified, with name == name) or null.
See also