Skip to content

Commit

Permalink
Update the WinForms sample to support High DPI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Jul 21, 2024
1 parent 449eb23 commit 7c282bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/Sorgan/Sorgan.WinForms.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
using Microsoft.Extensions.Logging;
using Sorgan.WinForms.Client;

ApplicationConfiguration.Initialize();

var host = new HostBuilder()
// Note: applications for which a single instance is preferred can reference
// the Dapplo.Microsoft.Extensions.Hosting.AppServices package and call this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>$(NetCoreWindowsTargetFramework)</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7c282bb

Please sign in to comment.