FrameworkTemplate.FindName(String, FrameworkElement) Método
Definición
Busca el elemento asociado con el nombre especificado que se definió en esta plantilla.Finds the element associated with the specified name defined within this template.
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
Parámetros
- name
- String
Nombre de la cadena.The string name.
- templatedParent
- FrameworkElement
Contexto del FrameworkElement donde se aplica esta plantilla.The context of the FrameworkElement where this template is applied.
Devoluciones
Elemento asociado con el nombre especificado.The element associated with the specified name.
Comentarios
Para obtener más información, vea "ámbitos de código XAML en estilos y plantillas" en ámbitos de código XAML de WPF.For more information, see "XAML Namescopes in Styles and Templates" in WPF XAML Namescopes.