title: Adding and removing WPF UIElements at runtime
body: <p>Is there a way to logically group or tag UIElements like shapes and controls added at runtime for easy removal?</p>
  
  <p>For eg., I have a <code>Grid</code> with some (design-time) child elements and add Ellipses and <code>TextBlock</code>s to it at runtime. When I want to draw a different set of Ellipses and <code>TextBlock</code>s, I'd like to remove the original set I added. What would be an easy way to logically group these while adding them so I can just have a  children.clear() or some way to identify them to remove them?</p>
  
  <p>It is possible to add a tag value but there is no way to retrieve or read this while iterating through children of a control because they are of type <code>UIElement</code> which does not have a tag property.</p>
  
  <p>Thoughts?</p>