Date​Picker​Automation​Peer Date​Picker​Automation​Peer Date​Picker​Automation​Peer Class


Exposes DatePicker types to Microsoft UI Automation.

public : class DatePickerAutomationPeer : FrameworkElementAutomationPeer, IDatePickerAutomationPeerpublic class DatePickerAutomationPeer : FrameworkElementAutomationPeer, IDatePickerAutomationPeerPublic Class DatePickerAutomationPeer Inherits FrameworkElementAutomationPeer Implements IDatePickerAutomationPeer
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties


The Windows Runtime DatePicker class creates a new DatePickerAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from DatePickerAutomationPeer if you are deriving a custom class from DatePicker and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in DatePickerAutomationPeer

DatePickerAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.


DatePickerAutomationPeer(DatePicker) DatePickerAutomationPeer(DatePicker) DatePickerAutomationPeer(DatePicker)

Initializes a new instance of the DatePickerAutomationPeer class.

public : DatePickerAutomationPeer(DatePicker owner)public DatePickerAutomationPeer(DatePicker owner)Public Sub New(owner As DatePicker)
DatePicker DatePicker DatePicker

The DatePicker to create the peer for.

See Also

See Also