I have a recording program that remains TopMost all the time, unless I open the Modern app (Windows 8) or Start Screen .
Perhaps the desktop application will remain on top of modern applications, for example, using the Magnifying Glass tool:

Now the problem is that using the TopMost option and / or calling the API in the WPF window will not work with modern applications.
What am I trying:
static readonly IntPtr HWND_TOPMOST = new IntPtr(-1); static readonly IntPtr HWND_NOTOPMOST = new IntPtr(-2); static readonly IntPtr HWND_TOP = new IntPtr(0); static readonly IntPtr HWND_BOTTOM = new IntPtr(1); const UInt32 SWP_NOSIZE = 0x0001; const UInt32 SWP_NOMOVE = 0x0002; const UInt32 TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE; [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
c # wpf topmost
Nicke manarin
source share