title: ScrollViewer is not working in WPF WindowsFormHost
body: <p><img src="https://i.stack.imgur.com/jptiN.jpg" alt="enter image description here">I have WindowsFormHost with a RichTextBox in my WPF form, i have given ScrollViewer for that WindowsFormHost but its not working, WindowsFormHost going outside of ScrollViewer...</p>
  
  <p>My XAML is..</p>
  
  <pre><code>&lt;ScrollViewer Background="DarkOrange" VerticalScrollBarVisibility="Auto" Height="80" MaxHeight="85" Margin="11,243,12,218" Width="756"&gt;
          &lt;Canvas Height="100" Name="canvas1" Width="auto" &gt;
              &lt;WindowsFormsHost ClipToBounds="True" Height="120" Width="715" Margin="10,5,0,0" Name="winHostTEst" Background="Gray"&gt;
                  &lt;wf:RichTextBox BackColor="Cornsilk" Text="RichTextBox" x:Name="richTbTest" BorderStyle="None" Enabled="True" ForeColor="Black" Width="550" Multiline="True" ReadOnly="True" /&gt;
              &lt;/WindowsFormsHost&gt;
          &lt;/Canvas&gt;
      &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>Here are two links with solution of this problem, but i am not able to implement that.. Please have a look to these links also and solve my problem..</p>
  
  <p>links are:</p>
  
  <p><a href="http://blogs.msdn.com/b/ryanvog/archive/2009/01/20/clipping-legacy-content-hosted-inside-a-wpf-scrolling-region.aspx" rel="noreferrer">http://blogs.msdn.com/b/ryanvog/archive/2009/01/20/clipping-legacy-content-hosted-inside-a-wpf-scrolling-region.aspx</a></p>
  
  <p><a href="http://www.mycsharp.de/wbb2/thread.php?threadid=76625" rel="noreferrer">http://www.mycsharp.de/wbb2/thread.php?threadid=76625</a></p>
  
  <p>Thanks in advance..</p>