SftBox/NET 3.0 supports per-monitor DPI awareness (Per-Monitor v2). In a per-monitor aware application, the combo box adapts when its window moves to a monitor with a different scale factor: the edit field, its buttons, the dropdown and the list are sized for the monitor's DPI, and the fonts of the list's headers, footers and row headers are scaled like the control's own font. A dropdown shown on another monitor than its combo box uses the DPI of that monitor.
A Windows Forms application becomes per-monitor aware with this setting in its app.config file (.NET Framework 4.7 or later), together with Windows 10 compatibility in its application manifest:
<System.Windows.Forms.ApplicationConfigurationSection> <add key="DpiAwareness" value="PerMonitorV2" /> </System.Windows.Forms.ApplicationConfigurationSection>
A .NET 10 application becomes per-monitor aware by calling Application.SetHighDpiMode(HighDpiMode.PerMonitorV2) before it creates its first window.
The control's DeviceDpi property returns the DPI of the monitor showing the control, and the DpiChangedAfterParent event occurs when it changes. Both are inherited from the Control class. The SftBox/NET samples are per-monitor aware.
The SftBox.ImageScaling property defines how images follow the DPI: with ImageScalingEnum.AsIs (the default), images are drawn at their size in pixels; with ImageScalingEnum.Stretch, they are treated as designed for 96 DPI and are scaled with the display DPI, including check boxes, radio buttons, expand/collapse buttons and the other built-in images. The SftBox.PixelScaling property does the same for pixel values such as column widths, indentation and item heights: with PixelScalingEnum.Stretch, they are 96-DPI values scaled with the display DPI.
Applications that are only DPI aware for the primary monitor (System DPI aware) get the same scaling at the system DPI.