title: C# Winforms-WPF interop
body: <p>Currently I have a Winforms app which relies on transpareny effects. However this is proving to be an absolute pain in the preverial behind! Winforms as Im learning doesn't deal with transparency particularly well.</p>
  
  <p>I was wondering whether or not this would be any easier using WPF components for the transparency bit and winforms for the rest (note althought Id like to move the whole app over to WPF this just isn't feasable!). I know next to nothing about WPF, hence the reason Im here! What I was considereing was :</p>
  
  <p>1) Host a WPF component within a Winforms User Control e.g. Example of WPF Control:</p>
  
  <pre><code>&lt;UserControl x:Class="WindowsFormsApplication1.UserControl1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Height="300" Width="300"&gt;
      &lt;Grid&gt;
           &lt;Rectangle Name="rectangle1" Stroke="White" Fill="Black" RadiusX="10" RadiusY="10" Opacity="0.7" /&gt;
          &lt;Rectangle Margin="57,101,43,99" Name="dialog" Stroke="Gray" Fill="White" RadiusX="10" RadiusY="10" /&gt;
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>2) Host a Winforms user control (content) within the white rectangle (dialog) of the WPF control.
  3) allow the content (Winforms user control) to call code on the parent of the WPF-Control.</p>
  
  <p>First things first...</p>
  
  <ul>
  <li>Is this a reasonable thing to do or am I barking up the wrong tree?</li>
  <li>Can this be achieved in an easier fashion?</li>
  <li>Can anyone help me here? (Sample code would be gratefully received!)</li>
  <li>Finally ... are there any online resources that can help me a) learn WPF and b) become more self-sufficient?</li>
  </ul>