

Effectively, all items on the screen align to a 40x40 effective pixels (epx) target, which lets UI elements align to a grid and scale appropriately based on system level scaling. Get the WinUI 2 Gallery app (Microsoft Store)įluent Standard sizing was created to provide a balance between information density and user comfort.If you have the WinUI 2 Gallery app installed, click here to (winui2gallery:/item/Compact Sizing). This font size works across regions and devices and ensures your application remains balanced and comfortable for users. While functionality and behavior has not changed and remains consistent across the two size and density options, the default body font size has been updated to 14px for all controls to support these two density options. This can be specified through a basic style resource (see examples below).

However, beginning with WinUI 2.1, a high-density (or Compact) layout option, for information rich UI and similar specialized scenarios, is also supported. Use a combination of control size and density to optimize your Windows application and provide a user experience that is most appropriate for your app's functionality and interaction requirements.īy default, UWP apps are rendered with a low-density (or Standard) layout.
