Class
RadHyperlinkButton

Represents a RadButton that functions as a hyperlink button, allowing users to navigate to a specified URI when clicked. The RadHyperlinkButton class provides several dependency properties:

  • NavigateUri: The URI to navigate to upon button click.
  • TargetName: The name of the target window or frame in which the URI should be opened.
  • IsVisited: Indicates whether the hyperlink has been clicked at least once.
  • VisitedForeground: Defines the foreground color of the hyperlink after it has been visited.
When the hyperlink button is clicked, it attempts to open the specified URI in the default web browser. The control also supports custom styling and automation peer creation for accessibility.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Buttons")]
public class RadHyperlinkButton : RadButton

Inheritance: objectRadButtonRadHyperlinkButton

Inherited Members RadButton.HoverDelayPropertyRadButton.CornerRadiusPropertyRadButton.IsBackgroundVisiblePropertyRadButton.ActivateEventRadButton.HoverEventRadButton.OnActivate()RadButton.OnHover()RadButton.OnClick()RadButton.OnLostFocus(RoutedEventArgs)RadButton.OnGotFocus(RoutedEventArgs)RadButton.OnMouseEnter(MouseEventArgs)RadButton.OnMouseLeave(MouseEventArgs)RadButton.OnMouseMove(MouseEventArgs)RadButton.OnIsPressedChanged(DependencyPropertyChangedEventArgs)RadButton.HoverDelayRadButton.CornerRadiusRadButton.IsBackgroundVisibleRadButton.ActivateRadButton.Hover

Constructors

RadHyperlinkButton()

Declaration

cs-api-definition
public RadHyperlinkButton()

Fields

IsVisitedProperty

Identifies the IsVisited property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsVisitedProperty

Field Value

DependencyProperty

NavigateUriProperty

Identifies the NavigateUri property.

Declaration

cs-api-definition
public static readonly DependencyProperty NavigateUriProperty

Field Value

DependencyProperty

TargetNameProperty

Identifies the TargetName property.

Declaration

cs-api-definition
public static readonly DependencyProperty TargetNameProperty

Field Value

DependencyProperty

VisitedForegroundProperty

Identifies the VisitedForeground property.

Declaration

cs-api-definition
public static readonly DependencyProperty VisitedForegroundProperty

Field Value

DependencyProperty

Properties

IsVisited

Gets or sets a value that indicates whether the hyperlink has been clicked.

Declaration

cs-api-definition
public bool IsVisited { get; set; }

Property Value

bool

NavigateUri

Gets or sets the URI to navigate to when the HyperlinkButton is clicked.

Declaration

cs-api-definition
public Uri NavigateUri { get; set; }

Property Value

Uri

TargetName

Gets or sets the name of the target window or frame that the Web page should open in.

Declaration

cs-api-definition
public string TargetName { get; set; }

Property Value

string

VisitedForeground

Gets or sets the foreground of the hyperlink after it has been clicked.

Declaration

cs-api-definition
public Brush VisitedForeground { get; set; }

Property Value

Brush

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadButton.OnApplyTemplate()

OnCreateAutomationPeer()

Creates a RadButtonAutomationPeer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadButton.OnCreateAutomationPeer()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadButton.OnInitialized(EventArgs)