Editar

Compartilhar via


DatePicker.OnCreateAutomationPeer Method

Definition

Returns a DatePickerAutomationPeer for use by the automation 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 DatePickerAutomationPeer for the DatePicker object.

Remarks

This method creates a new DatePickerAutomationPeer instance if one has not been created for the control instance; otherwise, it returns the DatePickerAutomationPeer previously created.

Applies to