<TextBlock>
<Hyperlink Name="hc" Click="hc_Click" NavigateUri="
http://www.bing.com/"> Bing </Hyperlink>
</TextBlock>
private void hc_Click(object sender, RoutedEventArgs e){
}
或者 在后台赋值txtB.Text=‘ url ‘;
<TextBlock>
<Hyperlink Name="hc" Click="hc_Click" TextDecorations="None">
<TextBlock x:Name="txtB" Text="Bing"/>
</Hyperlink>
</TextBlock>
private void hc_Click(object sender, RoutedEventArgs e){
System.Diagnostics.Process.Start(url);
}
WPF 超链接方式
原文:http://www.cnblogs.com/woodenmancool/p/4442270.html