How to make a window so that when you call window.Show() , it would be absolutely the topmost one and would not take control of itself during the appearance.

Now it happens like this:

  1. At the moment window.Show() window sometimes (not always) fails under other client applications and you have to return it with Alt + Tab
  2. At the moment window.Show() this window takes control over. Those. if I’m holding W in another client application, then this W seems to be squeezed out, although I did not press

     ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True" WindowState="Maximized" Topmost="True" 

The purpose of the window, without interfering, to show notifications.

  • Topmost not working or what? Over what you want to display it? - Andrey NOP
  • @AndreyNOP for example over the game, which is in the whole window (without frame). And slightly corrected the question. - Vipz
  • Probably for the answer it is bold, let it be a comment ... WS_EX_TOPMOST + WS_EX_TRANSPARENT + WS_EX_LAYERED + SetLayeredWindowAttributes / LWA_ALPHA who wants to earn 50 points can google on this line the complete solution in the required language =) - Vladimir Klykov
  • @ VladimirKlykov Actually, ShowActivated="False" is enough here - Vipz
  • one
    displaying notifications over full-screen DirectX-games will not work without introducing your DLL into the game process - MSDN.WhiteKnight

0