OnClick Method
Collapse the table of content
Expand the table of content

Hyperlink.OnClick Method

Handles the Click routed event.

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

protected virtual void OnClick ()
protected void OnClick ()
protected function OnClick ()
You cannot use methods in XAML.

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

Security noteSecurity 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft