Share via


HyperlinkButton Class

Definition

This control exists only for providing automation/accessibility support for a Button that would like to expose itself as a Hyperlink

public ref class HyperlinkButton : System::Windows::Controls::Button
public class HyperlinkButton : System.Windows.Controls.Button
type HyperlinkButton = class
    inherit Button
Public Class HyperlinkButton
Inherits Button
Inheritance
HyperlinkButton

Remarks

If you need to expose a Hyperlink as a button to screen readers, use ButtonHyperlink.

Constructors

HyperlinkButton()

Fields

AlwaysUnderlineProperty

Attached property that specifies the hyperlink underline behavior. Hyperlinks are generally underlined only in the hover state, this property allows them to be underlined in all states. This should be set for hyperlinks that are part of a sentence, to make the distinction between hyperlinks and regular text clearer, as color contrast between regular text and hyperlinks is not guaranteed to be sufficient under all VS themes.

Attached Properties

AlwaysUnderline

Methods

GetAlwaysUnderline(Button)
OnCreateAutomationPeer()

Returns an AutomationPeer that can be used by a Narrator

SetAlwaysUnderline(Button, Boolean)

Applies to