title: Create Hyperlink in TextBlock via Binding
body: <p>My problem is to find the urls from the text content and convert it into the clickable hyperlinks via data binding.</p>
  
  <p>This is what I've tried</p>
  
  <pre><code> &lt;TextBlock Tag="{Binding message}" x:Name="postDescription" TextWrapping="Wrap" 
    Grid.Row="3" Grid.ColumnSpan="3" Margin="10,10,10,12" FontSize="16" 
    TextAlignment="Justify" Foreground="{StaticResource foreGroundWhite}" &gt;
      &lt;Run Text="{Binding description, Converter={StaticResource statusFormatter}}" /&gt;
    &lt;/TextBlock&gt;
  </code></pre>
  
  <p>In code,</p>
  
  <pre><code>public class StatusFormatter : IValueConverter
      {
          public object Convert(object value, Type targetType, object parameter, string language)
          {
              return returnTextWithUrl((String)value);
          }
  
          public static String returnTextWithUrl(String text)
          {
              if(text == null) { return null;  }
              MatchCollection mactches = uriFindRegex.Matches(text);
  
              foreach (Match match in mactches)
              {
                  //Need Help here
                  HyperlinkButton hyperlink = new HyperlinkButton();
                  hyperlink.Content = match.Value;
                  hyperlink.NavigateUri = new Uri(match.Value);
                  text = text.Replace(match.Value, ??);
              }
              return text;
          }
  }
  }
  </code></pre>
  
  <p>The output should be something like this</p>
  
  <pre><code>&lt;TextBlock Tag="{Binding message}" x:Name="postDescription" TextWrapping="Wrap" 
        Grid.Row="3" Grid.ColumnSpan="3" Margin="10,10,10,12" FontSize="16" 
        TextAlignment="Justify" Foreground="{StaticResource foreGroundWhite}" &gt;
          Click this link -
          &lt;Hyperlink NavigateUri="http://www.bing.com"&gt;bing&lt;/Hyperlink&gt;
          - for more info.
        &lt;/TextBlock&gt;
  </code></pre>
  
  <p>Any Help?</p>