Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Hyperlink.OnClick Method ()


Handles the Click routed event.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected virtual void OnClick()

This method navigates to the uniform resource identifier (URI) specified by the NavigateUri property, and marks the URI as visited.

System_CAPS_security Security Note

Depending on the host computer's security configuration, certain forms of navigation (for example, navigating to a Universal Naming Convention (UNC) path) are not allowed in the Internet zone. In such cases, this method will demand full trust. For more information, see Code Access Security.

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft