High DPI / Display Scaling

XAML layout uses effective pixels (epx) — scaling is automatic for all XAML-rendered content.

  • Bitmap assets MUST be provided at multiple scales: .scale-100, .scale-125, .scale-150, .scale-200, .scale-400
  • For custom rendering (Win2D, Direct3D interop), query XamlRoot.RasterizationScale and listen for RasterizationScaleChanged
  • Pixel sizes MUST NOT be hard-coded in code-behind — rely on XAML layout and the scaling system
version
1.0.0
platforms
csharp, windows
tags
high-dpi-display-scaling, platform, windows
author
Mike Fullerton
modified
2026-03-27

Change History

Version Date Author Summary
1.0.0 2026-03-27 Mike Fullerton Initial creation