I have a WPF project which draws windows (like popups) over a different app 'APP', according to some elements' position of APP.
Those windows' position is calculated according to the system DPI (aka primary monitor's DPI).
When I change the primary DPI in the display settings, the windows' position is calculated using the 'old' primary DPI, which results in wrong location.
Is there some way to perform these calculations, which depend on the primary DPI, using the 'new' primary DPI and not using the old one?
I know that when changing the primary DPI, windows alerts me that "Some app won't respond to scaling changes until you close and reopen them.", but I need to find a way around it.
Thanks