Reputation: 123
I need to put button that after click moves user to website. Can someone tell me what should I put into vb and in xaml?
Upvotes: 0
Views: 131
Reputation: 332
You can do it also in C#
private void HyperlinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
{
var task = new Microsoft.Phone.Tasks.WebBrowserTask
{
URL = "http://siteaddress.com",
};
task.Show();
}
Upvotes: 0
Reputation: 15268
<HyperlinkButton Content="Click here to learn about Silverlight" NavigateUri="http://www.silverlight.net" TargetName="_blank" />
Upvotes: 1