UIElement.OnCreateAutomationPeer UIElement.OnCreateAutomationPeer UIElement.OnCreateAutomationPeer UIElement.OnCreateAutomationPeer Method

Definizione

Restituisce implementazioni di AutomationPeer specifiche della classe per l'infrastruttura di Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF).Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure.

protected:
 virtual System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();
protected virtual System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();
abstract member OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overridable Function OnCreateAutomationPeer () As AutomationPeer

Restituisce

Implementazione di AutomationPeer specifica del tipo.The type-specific AutomationPeer implementation.

Note per gli eredi

L'implementazione di questo metodo in genere chiama il costruttore di un'implementazione specifica AutomationPeer e la restituisce come valore restituito.The implementation of this method is typically to call the constructor of a specific AutomationPeer implementation, and return it as the return value.

Tutte UIElement le classi derivate devono implementare questo metodo per fornire le proprie AutomationPeer implementazioni specifiche all' Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastruttura.All UIElement derived classes should implement this method in order to provide their own specific AutomationPeer implementations to the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure. Per informazioni dettagliate sull'implementazione di questo modello AutomationPeer, vedere.For details on implementing this pattern, see AutomationPeer.

Si applica a