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:
[TelerikToolboxCategory("Buttons")]
public class RadHyperlinkButton : RadButton
Inheritance: objectRadButtonRadHyperlinkButton
Inherited Members
Constructors
public RadHyperlinkButton()
Fields
IsVisitedProperty
DependencyProperty
Identifies the IsVisited property.
public static readonly DependencyProperty IsVisitedProperty
NavigateUriProperty
DependencyProperty
Identifies the NavigateUri property.
public static readonly DependencyProperty NavigateUriProperty
TargetNameProperty
DependencyProperty
Identifies the TargetName property.
public static readonly DependencyProperty TargetNameProperty
VisitedForegroundProperty
DependencyProperty
Identifies the VisitedForeground property.
public static readonly DependencyProperty VisitedForegroundProperty
Properties
Gets or sets a value that indicates whether the hyperlink has been clicked.
public bool IsVisited { get; set; }
NavigateUri
Uri
Gets or sets the URI to navigate to when the HyperlinkButton is clicked.
public Uri NavigateUri { get; set; }
Gets or sets the name of the target window or frame that the Web page should open in.
public string TargetName { get; set; }
VisitedForeground
Brush
Gets or sets the foreground of the hyperlink after it has been clicked.
public Brush VisitedForeground { get; set; }
Methods
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Creates a RadButtonAutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Overrides:
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides: