title: Example using Hyperlink in WPF
body: <p>I've seen several suggestions, that you can add hyperlink to WPF application through <code>Hyperlink</code> control.</p>
  
  <p>Here's how I'm trying to use it in my code: </p>
  
  <pre><code>&lt;Window
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          mc:Ignorable="d" 
          x:Class="BookmarkWizV2.InfoPanels.Windows.UrlProperties"
          Title="UrlProperties" Height="754" Width="576"&gt;
      &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="40"/&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Grid&gt;
              &lt;ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.RowSpan="2"&gt;
                  &lt;StackPanel &gt;
                      &lt;DockPanel LastChildFill="True" Margin="0,5"&gt;
                          &lt;TextBlock Text="Url:" Margin="5" 
                              DockPanel.Dock="Left" VerticalAlignment="Center"/&gt;
                          &lt;TextBox Width="Auto"&gt;
                              &lt;Hyperlink NavigateUri="http://www.google.co.in"&gt;
                                      Click here
                              &lt;/Hyperlink&gt;   
                          &lt;/TextBox&gt;                      
                      &lt;/DockPanel &gt;
                  &lt;/StackPanel&gt;
              &lt;/ScrollViewer&gt;        
          &lt;/Grid&gt;
          &lt;StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,7,2,7" Grid.Row="1" &gt;
              &lt;Button Margin="0,0,10,0"&gt;
                  &lt;TextBlock Text="Accept" Margin="15,3" /&gt;
              &lt;/Button&gt;
              &lt;Button Margin="0,0,10,0"&gt;
                  &lt;TextBlock Text="Cancel" Margin="15,3" /&gt;
              &lt;/Button&gt;
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>I'm getting following error:</p>
  
  <blockquote>
    <p>Property 'Text' does not support values of type 'Hyperlink'.  </p>
  </blockquote>
  
  <p>What am I doing wrong?</p>