Hyperlink.Click event

Applies to Windows and Windows Phone

Occurs when the Hyperlink is clicked.

Syntax


public event TypedEventHandler<Hyperlink, HyperlinkClickEventArgs> Click


<Hyperlink Click="eventhandler"/>

Event information

Delegate TypedEventHandler<Hyperlink, HyperlinkClickEventArgs>

Remarks

The Click event is intended for navigation within the app, or actions other than launching a URI in a browser. For example, if you want a new app page to load rather than opening a browser, or if you want to load the URI specifically within a WebView control, you handle the Click event and write code to perform the actions you want. You don't typically handle Click as well as specifying a NavigateUri value, these represent two different ways of using the Hyperlink element. If your intent is to open the URI in the default browser, and you have specified a value for NavigateUri, don't handle Click. Conversely, if you have code for the Click event, don't specify a NavigateUri.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

See also

Hyperlink
NavigateUri

 

 

Show:
© 2014 Microsoft