WPF textblock加入超链接

<TextBlock Grid.Row="2" Margin="75,0,0,0">

     <Hyperlink Name="BlogHl" Click="BlogHl_Click" NavigateUri="http://www.cnblogs.com/ZXdeveloper/">http://www.cnblogs.com/ZXdeveloper/</Hyperlink>

</TextBlock>     
        private void BlogHl_Click(object sender, RoutedEventArgs e)

        {

            System.Diagnostics.Process.Start("http://www.cnblogs.com/ZXdeveloper/");

        }

WPF textblock加入超链接

你可能感兴趣的:(block)