FrameworkTemplate.FindName(String, FrameworkElement) Méthode

Définition

Recherche l’élément associé au nom spécifié défini dans ce modèle.

public:
 System::Object ^ FindName(System::String ^ name, System::Windows::FrameworkElement ^ templatedParent);
public object FindName(string name, System.Windows.FrameworkElement templatedParent);
member this.FindName : string * System.Windows.FrameworkElement -> obj
Public Function FindName (name As String, templatedParent As FrameworkElement) As Object

Paramètres

name
String

Nom de la chaîne.

templatedParent
FrameworkElement

Contexte de l’application FrameworkElement de ce modèle.

Retours

Élément associé au nom spécifié.

Remarques

Pour plus d’informations, consultez « Xaml Namescopes in Styles and Templates » dans WPF XAML Namescopes.

S’applique à