FrameworkElement.FindName Method (String)
Finds an element that has the provided identifier name.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- name
-
Type:
System.String
The name of the requested element.
Return Value
Type: System.ObjectThe 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
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0