title: Popup Never Closes
body: <p>WPF is really getting me out of my nerves here. I configured a popup with some complex content (grid, buttons etc..). I set its StaysOpen property to False and IsOpen to True on a textbox MouseDown preview event. </p>
  
  <p>Ths thing is that it opens but never closes when clicking anywhere outside the window.</p>
  
  <p>Any suggestions? </p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>My popup has buttons inside. When I click one of those, the popup closes when I click outside of it. Is some weird stuff happening to the events routing?</p>