Class DisplayScalingHelper
Provides methods to manage the DPI scale of the controls.
public static class DisplayScalingHelper- Inheritance
- 
      
      DisplayScalingHelper
Methods
- AdjustControlImagesDpiScale(Control)
- Tries to update the DPI scale for images stored in all controls within the specified container. 
- GetDpiScale(Control)
- Gives DPI scale value for the specified control. 
- IsDpiScale100Percent(Control)
- Indicates whether the DPI scale of the given control is near 1. 
- IsWindowsFormsHighDpiAutoResizingEnabled()
- Indicates whether the current Window Forms application is automatically resized due to DPI scaling changes. 
- SetFont(ContainerControl, Font)
- Sets the specified font for all controls in the container in case if non-100% scaling is in effect. This helps to circumvent the bug in WinForms auto scaling. See http://stackoverflow.com/questions/2973165/autoscalemode-problems-with-changed-default-font Container control. Font to be set.
- SetToolStripImageScaling(ToolStrip)
- Tries to scale an image related to the specified strip.