天天看點

wpf打開自己建立窗體中的超連結

wpf打開自己建立窗體中的超連結

wpf打開自己建立窗體中的超連結

1、xaml

<TextBlock Height="80">​
                For more information, see 
<Hyperlink NavigateUri="http://baidu.com" Click="Hyperlink_Click">Baidu.com</Hyperlink>.
</TextBlock>      

2、xaml.cs

private​void Hyperlink_Click(object​sender,RoutedEventArgs​e)
        {
            System.Diagnostics.Process.Start("http://baidu.com");
        }      
上一篇: git大全

繼續閱讀