title: how to make Textbox text as Hyperlink in WPF
body: <p>I want to make textbox text as Hyperlink. Suppose if the type www.google.com as tetxbox text,when i click on the text ,it show open the link in a browser..</p>
  
  <p>I could not get any idea to implement this...can u suggest me any idea...i tried the two ways.</p>
  
  <p>way1:</p>
  
  <pre><code>  &lt;TextBox Grid.Row="4" Name="txtWebPage" VerticalAlignment="Top" TextDecorations="UnderLine" TextChanged="txtWebPage_TextChanged" Foreground="Blue"&gt;
                                  &lt;/TextBox&gt;
  </code></pre>
  
  <p>way2:</p>
  
  <pre><code> &lt;TextBlock Name="tbWebpage" Grid.Row="4" Background="White" VerticalAlignment="Top" Height="20" &gt;
                                      &lt;Hyperlink&gt;&lt;/Hyperlink&gt;
                                  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>way3:</p>
  
  <pre><code>   &lt;RichTextBox Grid.Row="4" Name="rtxtWeb" BorderBrush="Gray" BorderThickness="1" VerticalAlignment="Top" Height="20" IsDocumentEnabled="True" Foreground="Blue" LostFocus="rtxtWeb_LostFocus"&gt;
                                      &lt;FlowDocument&gt;
                                          &lt;Paragraph&gt;
                                              &lt;Hyperlink NavigateUri=""/&gt;
                                          &lt;/Paragraph&gt;
                                      &lt;/FlowDocument&gt;
                                  &lt;/RichTextBox&gt;
  </code></pre>
  
  <p>I couldnt get how can i bind the RichTextBox text to Hyperlink uri!!! There is no click event for richtextbox...any suggestion please...</p>