Framework​Element.​Find​Name Method

Definition

Finds an element that has the provided identifier name.

public object FindName (string name);
Parameters
name
String

The name of the requested element.

Returns

The requested element. This can be null if no matching element was found.

Remarks

If the element has child elements, these child elements are all searched recursively for the requested named element.

FindName operates within the current element's namescope. For details, see WPF XAML Namescopes.