WPF超级链接

一、添加样式

<Style x:Key="LinkLabelStyle">   
<Setter Property="Control.Padding" Value="0" />
<Setter Property="Control.VerticalAlignment" Value="Center" />
</Style>
二、Xaml标记
<Label Canvas.Left="29"  Canvas.Top="320" x:Name="productLink" x:U/>               
</Hyperlink>
</Label.Content>
</Label>


三、代码

     private void hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
        {
            if (e.Uri != null && string.IsNullOrEmpty(e.Uri.OriginalString) == false)
            {
                string uri = e.Uri.AbsoluteUri;
                Process.Start(new ProcessStartInfo(uri));
                e.Handled = true;              
            }
        }