HubAutomationPeer HubAutomationPeer HubAutomationPeer HubAutomationPeer Class


Exposes Hub types to Microsoft UI Automation.

public : class HubAutomationPeer : FrameworkElementAutomationPeer, IHubAutomationPeerpublic class HubAutomationPeer : FrameworkElementAutomationPeer, IHubAutomationPeerPublic Class HubAutomationPeer Inherits FrameworkElementAutomationPeer Implements IHubAutomationPeer// This API is not available in Javascript.
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 Hub class creates a new HubAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from HubAutomationPeer if you are deriving a custom class from Hub 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 HubAutomationPeer

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


HubAutomationPeer(Hub) HubAutomationPeer(Hub) HubAutomationPeer(Hub) HubAutomationPeer(Hub)

Initializes a new instance of the HubAutomationPeer class.

public : HubAutomationPeer(Hub owner)public HubAutomationPeer(Hub owner)Public Sub New(owner As Hub)// This API is not available in Javascript.
Hub Hub Hub Hub

The Hub to create the peer for.

See Also