Contextmenus on dpi-aware application have a wrong scaling
moby42 opened this issue · 1 comments
moby42 commented
Situation : multimonitor setup:
- monitor 1 : 4k with 125% scaling
- monitor 2 : HD with 100% scaling
Application runs on second monitor : the contextmenu's on the document & anchorable's Tab are too large (scaled on 125%?).
I narrowed it don toe the DropDownControlArea class where the DropDowncontextMenu.PlacementTarget is null. Since the target is not defined, wpf assumes the scaling of the main monitor (125%) and shows the contextmenu far too large.
Include a patch file with the fix
Dirkster99 commented
Hi Thanks for your contribution. I was not able to replicate your problem although I have similar monitor settings but I applied your fix since it does not seem to introduce new issues for me - please test the mater branch and let me know if this does not work for you...
Thanx Dirk