win32-app-isolation
win32-app-isolation copied to clipboard
[Bug]: `GetOpenFileName` & `IFileDialog` don't support DPI Scaling in AppSilo
Version
Windows Version: 10.0.25370.1 Win32 app isolation release version: 0.1.0
Repro Steps
- Write an application using
winrt::com_ptr<IFileDialog>/GetOpenFileNameW()/GetSaveFileNameW(). - Write an fusion manifest and declare
PerMonitorV2.
……
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</windowsSettings>
</application>
……
- Package the app and run it in AppSilo.
<?xml version="1.0" encoding="utf-8"?>
<Package ……
xmlns:previewsecurity2="http://schemas.microsoft.com/appx/manifest/preview/windows10/security/2"
IgnorableNamespaces="… previewsecurity2">
……
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.25229.0" MaxVersionTested="10.0.25229.0" />
</Dependencies>
<Applications>
<Application … uap10:TrustLevel="appContainer" previewsecurity2:RuntimeBehavior="appSilo"> …… </Application>
</Applications>
</Package>
Unexpected Results
Open File Dialog is blurred.
Thanks for reporting this @AndromedaMelody ! Indeed we have to include support for DPI scaling options when brokering the file dialog.
Could you please clarify what exactly is blurry and where to look for the blur? I haven't been able to spot the blur myself, so it would be helpful to know exactly what to look for.
Thanks!