I am working on a WPF application with window size of 1200*932 including the title bar.
It displays well on my desktop monitor (2560*1440 with 125% scaling), the actual size is 1500*1165.
However, when I run it on my Laptop (2736*1824 with 200% scaling), the actual size is 2400*1864, which is too large.
How to handle this? I mean dynamically?
Edit:
The original question may be not clear. Sorry for that.
What I want to make is like how the UWP application works. On my desktop, the UWP application default window size is 1500*1165 (maybe 1200*932 *125%); While on laptop, the window size is 2048*1600 (maybe 1024*800 *200%).
Is that feature provided by UWP by default? Can WPF do this? Maybe programmatically, I think.
Why not UWP: I find that UWP is working inside kind of a sandbox. There are some restrictions on Network, which is important for my application.