FrameworkElement.FindName(String)
FrameworkElement.FindName(String)
FrameworkElement.FindName(String)
FrameworkElement.FindName(String)
Method
Definition
Finds an element that has the provided identifier name.
public:
System::Object ^ FindName(System::String ^ name);
public object FindName (string name);
member this.FindName : string -> obj
Public Function FindName (name As String) As Object
Parameters
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.
Applies to
See also
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...