title: Dynamically Add and Remove stack panel
body: <p><img src="https://i.stack.imgur.com/nFzj1.png" alt="enter image description here"></p>
  
  <p>I have one <code>WrapPanel</code> (with green background) inside of a <code>ListBox</code>(with gray background).</p>
  
  <p>I am trying to dynamically add a <code>StackPanel</code> multiple times (by clicking on the button below given image) in the <code>WrapPanel</code>. </p>
  
  <p>The <code>StackPanel</code> contains a <code>Button</code> which has Content “X”. I want to remove individual <code>StackPanel</code> objects (with orange background) when this button is clicked.</p>
  
  <p><strong>How can it be worked out?</strong></p>