title: Hosting WPF UserControl in a transparent Windows.Form
body: <p>I need to insert my WPF <code>USerControl</code> into a <code>Windows.Form</code>. This is my control:</p>
  
  <pre><code>&lt;UserControl x:Class="WpfControlLibrary1.UserControl1"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               Background="Transparent"&gt;
  
      &lt;InkCanvas x:Name="Ink" Background="Transparent" /&gt;
  
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>To host this control I use an <code>ElementHost</code> object as the only one control of my Form. I need to have the possibility to do the following: when I set the opacity of the form to 0, in order to make it invisible, I need to continue to have the opacity of all the <code>Children</code> and <code>Strokes</code> of My <code>InkCanvas</code> to 1 (so I can see them).</p>
  
  <p>I tried using the <code>TransparencyKey</code> property, but it seems it doesn't work with the <code>ElementHost</code>. How can I solve this problem, and how can I set a different opacity between my Form and my UserControl?</p>