Class HyperlinkButton
Represents a button control that displays a hyperlink.
Inheritance
System.Object
HyperlinkButton
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class HyperlinkButton : ButtonBase
Examples
HyperlinkButton hyperlinkButton = new HyperlinkButton() { Content = "here", NavigateUri = new Uri("http://www.myaddress.com"), Foreground = new SolidColorBrush(Windows.UI.Colors.Blue) };
MyStackPanel.Children.Add(hyperlinkButton);
Constructors
| Improve this Doc View SourceHyperlinkButton()
Initializes a new instance of the HyperlinkButton class.
Declaration
public HyperlinkButton()
Fields
| Improve this Doc View SourceNavigateUriProperty
Identifies the NavigateUri dependency property.
Declaration
public static readonly DependencyProperty NavigateUriProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TargetNameProperty
Identifies the TargetName dependency property.
Declaration
public static readonly DependencyProperty TargetNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceNavigateUri
Gets or sets the Uniform Resource Identifier (URI) to navigate to when the HyperlinkButton is clicked.
Declaration
public Uri NavigateUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
TargetName
Gets or sets the name of the target window or frame that the Web page should open in, or the name of the object within the application to navigate to.
Declaration
public string TargetName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceOnClick()
Declaration
protected override void OnClick()