I have a WPF application which can be run as an xbap application inside IE, and as a standalone WPF application.
When one of the monitors has scaling enabled, the standalone version works OK. With the XBAP version I keep having problems.
For example this scenario: Screen 1 has no scaling (100%), screen 2 has scaling (150%).
Starting the standalone version on screen 1 shows the UI like you would expect. Requesting the scaling factor in code returns 1. Moving the window to screen 2 scales everything up, as it should.
Starting the xbap version on screen 1 shows the UI zoomed in. It doesn't change when moved to screen 2. The IE window hosting the xbap is not scaled up on screen 1, so why is the xbap scaled up? When requesting the scaling factor in code, I receive 1.5.
This makes my application to be huge (zoomed in), even when started & displayed on a screen not using scaling.
Any ideas how I could fix this?