-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer |
winrt class |
Exposes CalendarDatePicker types to Microsoft UI Automation.
The Windows Runtime CalendarDatePicker class creates a new CalendarDatePickerAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from CalendarDatePickerAutomationPeer if you are deriving a custom class from CalendarDatePicker 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.
CalendarDatePickerAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetClassName returns "CalendarDatePicker".
- GetAutomationControlType returns AutomationControlType.Button.
- GetPattern reports support for PatternInterface.Invoke (IInvokeProvider ). The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.