mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 07:56:07 +02:00
Links: .NET Desktop - framework\winforms (#108)
This commit is contained in:
@@ -43,7 +43,7 @@ In addition, to configure high DPI support in your Windows Forms application, yo
|
||||
|
||||
- Enable per-monitor DPI awareness in the *app.config* file.
|
||||
|
||||
Windows Forms introduces a new [`<System.Windows.Forms.ApplicationConfigurationSection>`](https://docs.microsoft.com/dotnet/framework/configure-apps/file-schema/winforms/index) element to support new features and customizations added starting with the .NET Framework 4.7. To take advantage of the new features that support high DPI, add the following to your application configuration file.
|
||||
Windows Forms introduces a new [`<System.Windows.Forms.ApplicationConfigurationSection>`](/dotnet/framework/configure-apps/file-schema/winforms/index) element to support new features and customizations added starting with the .NET Framework 4.7. To take advantage of the new features that support high DPI, add the following to your application configuration file.
|
||||
|
||||
```xml
|
||||
<System.Windows.Forms.ApplicationConfigurationSection>
|
||||
@@ -78,7 +78,7 @@ Setting the `DpiAwareness` value to `PerMonitorV2` enables all high DPI awarenes
|
||||
</System.Windows.Forms.ApplicationConfigurationSection>
|
||||
```
|
||||
|
||||
For a list of individual keys and their values, see [Windows Forms Add Configuration Element](https://docs.microsoft.com/dotnet/framework/configure-apps/file-schema/winforms/windows-forms-add-configuration-element).
|
||||
For a list of individual keys and their values, see [Windows Forms Add Configuration Element](/dotnet/framework/configure-apps/file-schema/winforms/windows-forms-add-configuration-element).
|
||||
|
||||
## New DPI change events
|
||||
|
||||
@@ -126,5 +126,5 @@ Console.WriteLine(AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName);
|
||||
|
||||
## See also
|
||||
|
||||
- [Windows Forms Add Configuration Element](https://docs.microsoft.com/dotnet/framework/configure-apps/file-schema/winforms/windows-forms-add-configuration-element)
|
||||
- [Windows Forms Add Configuration Element](/dotnet/framework/configure-apps/file-schema/winforms/windows-forms-add-configuration-element)
|
||||
- [Adjusting the Size and Scale of Windows Forms](adjusting-the-size-and-scale-of-windows-forms.md)
|
||||
|
||||
Reference in New Issue
Block a user