I'm currently trying to solve an issue as follows:
I have no parent window, i just right click on the second screen which opens a WPF ContextMenu (from a native C++ mother app) which actually does not appear on the second screen but on the first.
- I tried using the mouse coordinates. does not work because ContextMenu will stay on the first screen.
- Placing an invisible helper window on the second screen, setting this as a parent and opening the ContextMenu at the coordintes relative to the second screens upper left corner works fine. But i don't want to use the helper window.
So now: How can i put the ContextMenu on the second screen without a parent window. Is there some way to tell the menu what screen to use? Maybe there are some Parameters i can use from the the "CustomPopupPlacementCallback" in the ContextMenu?
Any help would be appreciated :-D
cheers!