title: Close WPF user control inside Winform application and free memory
body: <p>I have a <code>UserControl</code> placed inside a <code>WinForm</code>. </p>
  
  <p>I you want to close only the <code>UserControl</code>.
  So i found that I can  deal with <code>Visibility</code>. </p>
  
  <pre><code>UserControl.Visibility = Collapsed;
  </code></pre>
  
  <p>or remove the <code>UserControl</code> from the <code>Parent</code> using :</p>
  
  <pre><code>container.Children.Remove(UserControl);
  </code></pre>
  
  <p>But what i need is to remove all <code>resources</code> used by this <code>UserControl</code> because it cosume a lot of memory.
  Is there a way how to close that <code>UserControl</code> and clean up memory.</p>