title: Fitting the Size of a WPF unto a Windows Forms User Control
body: <p>Using the elementHost method, I've docked a WPF on a Windows Forms User Control. Both have the same size, yet the WPF is not displayed correctly on the User Control (see <a href="https://i.stack.imgur.com/mPERR.jpg" rel="nofollow noreferrer">picture</a>). What am I doing wrong?</p>
  
  <p>WPF Code Snippet:</p>
  
  <pre><code>&lt;UserControl x:Class="SlideAnalysis.Views.DesignView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           xmlns:local="clr-namespace:SlideAnalysis.Views"
           mc:Ignorable="d"
           Height="586"
           Width="431"&gt;
  </code></pre>