ExtensionMethods.FindDescendant Method (DependencyObject, Predicate<DependencyObject>)

 

Microsoft internal use only.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public static DependencyObject FindDescendant(
	this DependencyObject obj,
	Predicate<DependencyObject> predicate
)

Parameters

obj
Type: System.Windows.DependencyObject

The object at which to begin searching.

predicate
Type: System.Predicate<DependencyObject>

The predicate that selects the descendant object.

Return Value

Type: System.Windows.DependencyObject

The first descendant that satisfies the predicate, or null if no descendant is found.

Return to top
Show: