title: WPF mark and select controls
body: <p>I would like to know if any way to "mark" a group of controls in WPF and then retrive those controls in a <code>window.xaml.cs</code> function.</p>
  
  <p>Due the layout of the window the controls cannot be grouped under any xaml 
  structure.</p>
  
  <p>I would like something like this</p>
  
  <pre><code>&lt;Button Selection="selection" /&gt;
  &lt;Textbox /&gt;
  &lt;Label Selection="selection" /&gt;
  </code></pre>
  
  <p>-</p>
  
  <pre><code>function someEvent()
  {
    //In here get a collection with the button and the Label using 'selection'
  }
  </code></pre>
  
  <p>The important thing is that the identifier cannot be unique, I can't use <code>Name</code> and also must not be generic, I cant use <code>Label</code> or <code>Button</code>.</p>
  
  <p>And finally as I said at the beggining, controls cannot be encolsed in any kind of group either. They may be encolsed separately.</p>
  
  <p>Thank you all!</p>