Editar

Compartilhar via


Button.OnCreateAutomationPeer Method

Definition

Creates an appropriate ButtonAutomationPeer for this control as part of the WPF infrastructure.

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

Returns

A ButtonAutomationPeer for this control.

Applies to