-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Automation.Peers.MenuFlyoutItemAutomationPeer |
winrt class |
Exposes MenuFlyoutItem types to Microsoft UI Automation.
The Windows Runtime MenuFlyoutItem class creates a new MenuFlyoutItemAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from MenuFlyoutItemAutomationPeer if you are deriving a custom class from MenuFlyoutItem 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.
MenuFlyoutItemAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports that the peer provides pattern support for PatternInterface.Invoke (IInvokeProvider).
- GetClassName returns "MenuFlyoutItem".
- GetAutomationControlType returns AutomationControlType.MenuItem. 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.
FrameworkElementAutomationPeer, IInvokeProvider, MenuFlyoutItem