title: Activating a window behavior is different when running the app from Visual Studio and directly from the exe
body: <p>I have a <code>MouseEnter</code> event in which I call <code>Activate()</code> to activate the window. The behavior is different when running the app from Visual Studio and when opening the executable.</p>
  <p>You can see the difference in this <a href="https://www.youtube.com/watch?v=SpPRHFoNLVs" rel="nofollow noreferrer">video</a>.</p>
  <p>You can download a demo project where the issue can be reproduced <a href="https://1drv.ms/u/s!Ap7lCHAb5gNEjeoCFGVbgWM-knNhUQ?e=Gr4E0N" rel="nofollow noreferrer">here</a>.</p>
  <p>I need the app to behave as it's running from VS.</p>