Summary

In this module, you learned why it is important to configure auto-scaling of your application according to its contents and you performed the following exercises:

  • Tested your application at the 144 DPI setting
  • Compared the UI elements at the 144 DPI setting to those at the 96 DPI setting
  • Used auto-scaling by modifying the AutoScaleMode property of your application's form to make it compatible with high DPI settings

The AutoScaleMode property specifies the current automatic scaling mode of the control:

  • Scaling by Font is useful if you want to have a control or form stretch or shrink according to the size of the fonts in the operating system, and should be used when the absolute size of the control or form does not matter
  • Scaling by DPI is useful when you want to size a control or form relative to the screen. For example, you may want to use DPI scaling on a control displaying a chart or other graphic so that it always occupies a certain percentage of the screen

To make your application truly high-fidelity DPI-aware, you should create multiple resolution versions of your images, bitmaps, icons, and toolbar buttons. Then you will have appropriately scaled images for different display resolutions without having the blurriness or pixilation associated with scaling small bitmaps. With those high-fidelity assets, you can select the appropriate bitmap based on the closest match to the current DPI setting and then scale to fit the precise setting.