Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

狀況

當您執行每個監視器,DPI 感知 Windows Presentation Foundation (WPF) 應用程式在高 DPI 設定 (大於 100%),應用程式會顯示在 100 %dpi。如果應用程式的目標架構版本是早於 4.6.2,或作業系統是早於 Windows 10 桌面預覽,就會發生這個問題。

UWP 的 XAML 設計工具在 Visual Studio 2013年和 Visual Studio 的 2015年中的 Windows 8.1 應用程式上也會發生這個問題。

原因

因為新的歸復推出的每個監視器,DPI 感知的變更,在 WPF 中,會發生這個問題。

解決方案

若要解決這個問題,請在 app.config 檔案中,應用程式的新增 < 執行階段 > 區段下的下列項目︰

<AppContextSwitchOverrides value="Switch.System.Windows.DoNotScaleForDpiChanges=false"/>

參考

如需有關 Microsoft.NET Framework 4.6.2 預覽的詳細資訊,請參閱.NET Framework 4.6.2 預覽已知問題

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×