Dawid Lis
Dawid Lis

Reputation: 123

Hyperlink button website

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

Answers (2)

dargod
dargod

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

Olivier Payen
Olivier Payen

Reputation: 15268

<HyperlinkButton Content="Click here to learn about Silverlight" NavigateUri="http://www.silverlight.net" TargetName="_blank" />

Upvotes: 1

Related Questions