Class Hyperlink
Provides an inline-level content element that provides facilities for hosting hyperlinks.
Inherited Members
Namespace: System.Windows.Documents
Assembly: OpenSilver.dll
Syntax
public sealed class Hyperlink : Span, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceHyperlink()
Initializes a new instance of the Hyperlink class.
Declaration
public Hyperlink()
Fields
| Improve this Doc View SourceCommandParameterProperty
Identifies the CommandParameter dependency property.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CommandProperty
Identifies the Command dependency property.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MouseOverForegroundProperty
Identifies the MouseOverForeground dependency property.
Declaration
public static readonly DependencyProperty MouseOverForegroundProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MouseOverTextDecorationsProperty
Identifies the MouseOverTextDecorations dependency property.
Declaration
public static readonly DependencyProperty MouseOverTextDecorationsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
NavigateUriProperty
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 SourceCommand
Gets or sets a command to associate with the Hyperlink.
Declaration
public ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand | A command to associate with the Hyperlink. The default is null. |
CommandParameter
Gets or sets command parameters associated with the command specified by the Command property.
Declaration
public object CommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object specifying parameters for the command specified by the Command property. The default is null. |
MouseOverForeground
Gets or sets the brush that paints the foreground color when the mouse pointer moves over the Hyperlink.
Declaration
public Brush MouseOverForeground { get; set; }
Property Value
Type | Description |
---|---|
Brush | The brush that paints the foreground color when the mouse pointer moves over the Hyperlink. |
MouseOverTextDecorations
Gets or sets the TextDecorationCollection that decorates the Hyperlink.
Declaration
public TextDecorationCollection MouseOverTextDecorations { get; set; }
Property Value
Type | Description |
---|---|
TextDecorationCollection | A TextDecorationCollection that decorates the Hyperlink. |
NavigateUri
Gets or sets a URI to navigate to when the Hyperlink is activated.
Declaration
public Uri NavigateUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri | The URI to navigate to when the Hyperlink is activated. The default is null. |
TargetName
Gets or sets the name of a target window or frame for the Hyperlink.
Declaration
public string TargetName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of a target window or frame for the Hyperlink. |
Methods
| Improve this Doc View SourceINTERNAL_AttachToDomEvents()
Declaration
public override void INTERNAL_AttachToDomEvents()
Overrides
| Improve this Doc View SourceINTERNAL_DetachFromDomEvents()
Declaration
public override void INTERNAL_DetachFromDomEvents()
Overrides
| Improve this Doc View SourceINTERNAL_OnAttachedToVisualTree()
Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
Events
| Improve this Doc View SourceClick
Occurs when the left mouse button is clicked on a Hyperlink.
Declaration
public event RoutedEventHandler Click
Event Type
Type | Description |
---|---|
RoutedEventHandler |