In the first recipe, you will learn how to open a given website in a default browser available in the system. Such a task is really easy and just requires you to provide a URL of the website for the
LaunchUriAsync method. Let's start!
To step through this recipe, you need only the automatically generated project.
To prepare an example that opens a website in a default browser available in the system, perform the following steps:
MainPage.xamlfile, as follows:
<Page (...)> <StackPanel (...)> <Button Content="Open website" (...) Click="BtnOpenWebsite_Click" /> </StackPanel> </Page> ...