title: WPF Lost-Focus issue in same control
body: <p>I have a small problem with focusing in .net/wpf. I have written a custom user control which contains a <code>TextBox</code> and a <code>SearchButton</code>. The user-control has a lost focus event, which validate the content of the textbox if the focus is leaving. But now I have the problem, if I click on my search button, the lost focus event of the user control gets fired, even if I click on the button in the custom user control. (The button additionally has the option <code>TabStop=&quot;False&quot;</code>:</p>
  <p><img src="https://i.stack.imgur.com/sxy4S.png" alt="Custom-User-Control design" /></p>
  <p>The problem is, that I don't want to fire the event if I click on the button.</p>