Telerik UI for Windows Phone by Progress

Finds a visual descendant from a given type and based on a given condition that is in the hierarchy of a given parent element.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Core (in Telerik.Windows.Core.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)


public static T FindVisualDescendant<T>(
	DependencyObject parent,
	Predicate<DependencyObject> condition = null
where T : class
Visual Basic
Public Shared Function FindVisualDescendant(Of T As Class) ( _
	parent As DependencyObject, _
	Optional condition As Predicate(Of DependencyObject) = Nothing _
) As T
Visual C++
generic<typename T>
where T : ref class
static T FindVisualDescendant(
	DependencyObject^ parent, 
	Predicate<DependencyObject^>^ condition = nullptr


Type: System.Windows..::..DependencyObject
The parent.
condition (Optional)
Type: System..::..Predicate<(Of <(<'DependencyObject>)>)>
The condition.

Type Parameters

The type of the element to look for.

Return Value

An instance of the given type if found, otherwise null.

See Also