title: Load HTML contents in Silverlight RichTextBox?
body: <p>see, i have a html file and i'm trying to load other than iframe and web-browser controls
  so i used RichTextBox is it supportable only with XAML? if it also supports HTML.how do i implement.</p>
  
  <p>i tried to load a html file but it loaded as text. </p>
  
  <p>below is my code.</p>
  
  <pre><code>&lt;Grid x:Name="LayoutRoot" Background="White"&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="400"/&gt;
          &lt;ColumnDefinition Width="580"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Canvas&gt;
      &lt;TextBox Height="23" x:Name="txtFileName" Canvas.Left="15" Canvas.Top="40" Grid.Row="0" Grid.Column="0" Width="280"  /&gt;
          &lt;Button Content="Browse" Height="23" HorizontalAlignment="Left" x:Name="btnBrowse" Canvas.Left="300" Canvas.Top="40" Grid.Row="0" Grid.Column="0" Width="75" Click="BtnBrowse_Click"  /&gt;
  
          &lt;RichTextBox x:Name="rtxtboxHTML" Margin="3" Grid.Row="0" Grid.Column="1" Width="450" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="450" Canvas.Top="40" IsReadOnly="True" TextWrapping="Wrap"/&gt;
  
      &lt;/Canvas&gt;
  &lt;/Grid&gt;
  
  private void BtnBrowse_Click(object sender, RoutedEventArgs e)
      {
  
          OpenFileDialog openFileDialog = new OpenFileDialog();
          openFileDialog.Filter = "Html files (*.html)|*.htm|All Files (*.*)|*.*";
  
          if (openFileDialog.ShowDialog()==true)
          {
              txtFileName.Text = openFileDialog.File.Name;
              FileInfo _File = openFileDialog.File;
  
              using (StreamReader strReader = new StreamReader(openFileDialog.File.OpenRead()))
              {
                  string _strTemp = string.Empty;
                  //var rs = Application.GetResourceStream(new Uri(openFileDialog.File.Name, UriKind.Relative));
                  //StreamReader sr = new StreamReader(rs.Stream);
                  while (!strReader.EndOfStream)
                  {
                      _strTemp = strReader.ReadToEnd();
                  }
                  strReader.Close();
                  rtxtboxHTML.Selection.Text = _strTemp;
              }
          }
      }
  </code></pre>
  
  <p>where i went wrong...
  Thank you</p>