i want to change the width and height of my window based on the resolution of the monitor where the app window is running.
i use this code to get the monitor information:
var screen = Screen.FromHandle(new WindowInteropHelper(this).Handle);
I’m getting the right display name, but the Width and Height are not good. My second monitor for example is: 2560×1440 and i’m getting this: 4267×2400
Thank you for your help.