I have C# WPF program with multiple windows. I've added support for windows 10 desktops, but the users would like some windows to stay on the screen when moving between desktops.
For example if window A is opened on the first desktop and they flip to the second desktop they want window A to stay in the same location on the new desktop.
The only functions I'm aware of are from the VirtualDesktopManager:
GetWindowsDesktopId()
IsWindowOnCurrentVirtualDesktop()
MoveWindowToDesktop()
Is there a way to do this?
Also is there a way to detect when a desktop flip has been initiated? Because if so I could always call IsWindowOnCurrentVirtualDesktop() and if the answer is no I could call MoveWindowToDesktop() to place it there. Seems like a bit of a hack, but would get the job done if i had a way to detect the desktop change.