title: How to give a child window bounds to not go outside the MainWindow in WPF
body: <p>I have a simple question really but I can't seem to find it. I am using WPF and I am creating a child window (Class Window) which displays a simple view. Now I can move the window around however what I would want is that it cannot move OUTSIDE the main window. (I think the Popup control has that behavior if I am not mistaking). Any easy way I can do that ?</p>
  
  <p>Let me know if this isn't clear. </p>
  
  <p>Thanks in advance. </p>
  
  <p>Kind regards,
  Qwin</p>