title: WPF Custom Items Control with search support
body: <p>I need to write a custom WPF control that should look like a <code>ComboBox</code> with extended items search feature. For this purpose I'd like to have a <code>TextBox</code> and a <code>Popup</code> with a search <code>TextBox</code> and a <code>ListBox</code>. </p>
  
  <p>My first question is if it's a good decision to inherit from <code>Selector</code>, or rather <code>ComboBox</code> ?</p>
  
  <p>The second question is where can I find a good example of this.. the only solution seems to be disassembling the Microsoft's library and look approximately what they are doing.</p>
  
  <p>Other questions:</p>
  
  <ol>
  <li>How should I handle events? e.g. <code>Button</code> click in a <code>Template</code>. Should I look it up in the <code>Template</code> and register the events in that way, or can I register it directly in XAML like <code>Click="PART_Button1CLick"</code> ?</li>
  </ol>
  
  <p>Thank you guys !</p>