天天看点

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大全

继续阅读