HyperlinkButton

HyperlinkButton acts much like a hyperlink in HTML. It is similar to Button, but with a different default appearance and one more property: NavigateUri. This is the analog to the AREA (A) element’s href attribute in HTML. You can set it to a URL, and when a user clicks the button, it automatically launches the appropriate app to act upon the content. This is equivalent to calling Launcher.LaunchUriAsync. For example, if the URL begins with http://, the default Web browser opens and shows the page. If it begins with a custom protocol, and an app is installed that can handle it, then that app gets launched appropriately (after prompting the user with a “Did you mean to switch apps?” message). If no such app is installed, then Windows ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.