FrameworkElement.FindName(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Recherche un élément qui a le nom d’identificateur fourni.
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
Paramètres
- name
- String
Nom de l’élément demandé.
Retours
Élément demandé. Cela peut être null si aucun élément correspondant n’a été trouvé.
Remarques
Si l’élément a des éléments enfants, ces éléments enfants sont tous recherchés de manière récursive pour l’élément nommé demandé.
FindName fonctionne dans le namescope de l’élément actuel. Pour plus d’informations, consultez WPF xaml Namescopes.