title: Cannot convert my UserControl to Windows.Forms.Control
body: <p>I try to use Acrobat PDF Reader in a WPF app but I found that WindowsFormsHost is a WinForm Control ...so it could be the source of the issue...
  I got the message "Cannot convert OphtalBox.PDFReader to Windows.Forms.control" at the indicated line. Thanks</p>
  
  <p>I did a mix of these 2 tutorials :
  <br><a href="http://www.screencast.com/t/JXRhGvzvB" rel="nofollow">http://www.screencast.com/t/JXRhGvzvB</a> </p>
  
  <p><a href="http://www.codeproject.com/Articles/380019/Using-Adobe-Reader-in-a-WPF-app" rel="nofollow">http://www.codeproject.com/Articles/380019/Using-Adobe-Reader-in-a-WPF-app</a></p>
  
  <p>My page to display my usercontrol</p>
  
  <pre class="lang-cs prettyprint-override"><code>public partial class DidactielPage : Window
  {
      public DidactielPage()
      {
          InitializeComponent();
          var ucPdfReader = new PdfReader("/Resource/Data/DidacticielOphtalBoX.pdf");
          this.WindowsFormHost1.Child = ucPdfReader;// the error message shows here
  
  
      }
  }
  </code></pre>
  
  <p>My userControl Class</p>
  
  <pre class="lang-cs prettyprint-override"><code>public partial class PdfReader : UserControl
  {
      public PdfReader(string filename)
      {
          InitializeComponent();
  
          AcroPDF acro = new AcroPDF();
          acro.setShowToolbar(false);
  
          acro.setView("FitH");
          acro.LoadFile(filename);
          acro.src = filename;
          acro.setViewScroll("FitH", 0);
      }
  }
  </code></pre>