Hyperlink​Button​Automation​Peer Hyperlink​Button​Automation​Peer Hyperlink​Button​Automation​Peer Class


Exposes HyperlinkButton types to Microsoft UI Automation.

public : class HyperlinkButtonAutomationPeer : ButtonBaseAutomationPeer, IHyperlinkButtonAutomationPeer, IInvokeProviderpublic class HyperlinkButtonAutomationPeer : ButtonBaseAutomationPeer, IHyperlinkButtonAutomationPeer, IInvokeProviderPublic Class HyperlinkButtonAutomationPeer Inherits ButtonBaseAutomationPeer Implements IHyperlinkButtonAutomationPeer, IInvokeProvider
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 HyperlinkButton class creates a new HyperlinkButtonAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from HyperlinkButtonAutomationPeer if you are deriving a custom class from HyperlinkButton 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 HyperlinkButtonAutomationPeer

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

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.


HyperlinkButtonAutomationPeer(HyperlinkButton) HyperlinkButtonAutomationPeer(HyperlinkButton) HyperlinkButtonAutomationPeer(HyperlinkButton)

Initializes a new instance of the HyperlinkButtonAutomationPeer class.

public : HyperlinkButtonAutomationPeer(HyperlinkButton owner)public HyperlinkButtonAutomationPeer(HyperlinkButton owner)Public Sub New(owner As HyperlinkButton)
HyperlinkButton HyperlinkButton HyperlinkButton

The owner element to create for.



Invoke() Invoke() Invoke()

Sends a request to click the hyperlink button associated with the automation peer.

public : void Invoke()public void Invoke()Public Function Invoke() As void


Calls to Invoke should return immediately without blocking. However, this behavior is entirely dependent on the Microsoft UI Automation provider implementation. In scenarios where calling Invoke causes a blocking issue, such as a modal dialog, a separate helper thread may be required to call the method.

See Also