HubSectionAutomationPeer
HubSectionAutomationPeer
HubSectionAutomationPeer
HubSectionAutomationPeer
Class
Definition
Exposes HubSection types to Microsoft UI Automation.
public : class HubSectionAutomationPeer : FrameworkElementAutomationPeer, IHubSectionAutomationPeer, IScrollItemProviderpublic class HubSectionAutomationPeer : FrameworkElementAutomationPeer, IHubSectionAutomationPeer, IScrollItemProviderPublic Class HubSectionAutomationPeer Inherits FrameworkElementAutomationPeer Implements IHubSectionAutomationPeer, IScrollItemProvider// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerHubSectionAutomationPeerHubSectionAutomationPeerHubSectionAutomationPeerHubSectionAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
The Windows Runtime HubSection class creates a new HubSectionAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from HubSectionAutomationPeer if you are deriving a custom class from HubSection 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 HubSectionAutomationPeer
HubSectionAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports no pattern support.
- GetClassName returns "HubSection".
- GetAutomationControlType returns AutomationControlType.ListItem.
- GetName attempts to get a string from the owner control's Header property. Otherwise, the framework peer behavior of using AutomationProperties.Name applies.
- GetChildren returns a set of peers where the peer for the Header is first. This is followed by peers for the content in HeaderTemplate. If IsHeaderInteractive is true for the section, there's also a peer representing the chevron glyph button that's added by templates. Then peers are included for the content being presented in the section. 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.
For Windows Phone Store app, GetPattern reports support for the ScrollItem pattern, and implements the ScrollIntoView method for it.
Constructors
HubSectionAutomationPeer(HubSection) HubSectionAutomationPeer(HubSection) HubSectionAutomationPeer(HubSection) HubSectionAutomationPeer(HubSection)
Initializes a new instance of the HubSectionAutomationPeer class.
public : HubSectionAutomationPeer(HubSection owner)public HubSectionAutomationPeer(HubSection owner)Public Sub New(owner As HubSection)// This API is not available in Javascript.
The HubSection to create the peer for.
Methods
ScrollIntoView() ScrollIntoView() ScrollIntoView() ScrollIntoView()
Scrolls the content area of the parent container in order to display the item within the visible region (viewport) of the container.
public : void ScrollIntoView()public void ScrollIntoView()Public Function ScrollIntoView() As void// This API is not available in Javascript.