webbrowser?
是在你的wpf里面打开,还是要在浏览器里面打开
wpf里面就webbrowser
浏览器就楼上的
这个简单
我的一段代码
private void HashtagClickedInTweet(object sender, RoutedEventArgs reArgs)
{
if (reArgs.OriginalSource is System.Windows.Documents.Hyperlink)
{
Hyperlink h = reArgs.OriginalSource as Hyperlink;
string hashtag = h.Tag.ToString();
string hashtagUrl = String.Format(Settings.Default.HashtagUrl, Uri.EscapeDataString(hashtag));
try
{
System.Diagnostics.Process.Start(hashtagUrl);
}
catch
{
// TODO: Warn the user? Log the error? Do nothing since Witty itself is not affected?
}
reArgs.Handled = true;
}
}
这是开默认浏览器
Settings.Default.HashtagUrl 是什么!!!???