1

I have this issue where I open an extra window with window.show() Which logically will draw on top of my first window(the part where the shadow is drawn).

But I want the new window to draw behind the shadow, or at least force the first window to redraw on top, so I don't get this effect that if I mouse over my original window the shadow pops back into view.

Any ideas? I tried window.focus() and window.Active(), window.show().. Thanks! http://i.imgur.com/GTes1NR.gifv

Unhek
  • 93
  • 1
  • 9
  • Does this help? [dropshadow-for-wpf-borderless-window](http://stackoverflow.com/questions/3372303/dropshadow-for-wpf-borderless-window) – Glen Thomas Aug 04 '15 at 11:05

1 Answers1

0

add eventHandler onloaded for this new Window in first window and in this handler you can set Focus on first window (this)

window.Loaded += (sender, args) => this.Focus();
window.Show();

For me it works.

darson1991
  • 406
  • 6
  • 18