c# - How to send a WPF window to the back? -
In my application, I have a window to plot the debug data. When I load it, In the background ", would like to open behind all other windows.
What is the best way to get it?
You can use the following code:
[DllImport ("User32.dll")] static extern bool SetWindowPos (IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uFlags); Constant UInt32 SWP_NOSIZE = 0x0001; Const UInt32 SWP_NOMOVE = 0x0002; Stable readonly contrast hkfbtbtm.o.o. = New Interpet (1); Fixed Zero SendWpfWindowBack (window window) {var hWnd = new windowInternetHelp (window) .handle; Setwindo POS (hwnd, hbbbootm, 0, 0, 0, 0, SWP_NOSIJC | SWP_NOMOVE); }
Source:
Comments
Post a Comment