-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Automation.Peers.FlipViewItemAutomationPeer |
winrt class |
Exposes a FlipViewItem to Microsoft UI Automation.
The Windows Runtime FlipViewItem class creates a new FlipViewItemAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from FlipViewItemAutomationPeer if you are deriving a custom class from FlipViewItem 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.
FlipViewItemAutomationPeer 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 doesn't have any patterns. However, the content of the FlipViewItem might have a specific peer, for example if it is a TextBox. The parent FlipView has the support for any selection-related automation behavior.
- GetClassName returns "FlipViewItem".
- GetAutomationControlType returns AutomationControlType.ListItem. 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, FlipView, FlipViewItem, Custom automation peers