Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FrameworkElement::FindName Method (String^)

 

Finds an element that has the provided identifier name.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
Object^ FindName(
	String^ name
)

Parameters

name
Type: System::String^

The name of the requested element.

Return Value

Type: System::Object^

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

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.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft