Click or drag to resize

ExtensionsFindVisualChildrenT Method (DependencyObject, FuncFrameworkElement, Boolean)

Returns all visual childs and sub child (recursively) of the element that matches the predicate.

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static IEnumerable<T> FindVisualChildren<T>(
	this DependencyObject element,
	Func<FrameworkElement, bool> predicate
)
where T : FrameworkElement

Parameters

element
Type: System.WindowsDependencyObject
The parent element
predicate
Type: SystemFuncFrameworkElement, Boolean
A function to test each element for a condition.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Cauldron.XAML.Extensions.FindVisualChildren``1(System.Windows.DependencyObject,System.Func{System.Windows.FrameworkElement,System.Boolean})"]

Return Value

Type: IEnumerableT
A collection of FrameworkElement

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also