WinUI3 : IS WinUI3 controls measured through device-independent pixels (DIPs)?

Harshithraj1871 1,196 Reputation points


I'm working on WinUI3 desktop application in cpp. I wanted to understand what is the unit of measure for winui3 elements. When I set a height to a winui3 canvas, what is the unit of measure of that height. According to the documentation the unit of measure is pixel, Is this pixel device-independent pixels (DIPs) ?

Thank You

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
599 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,221 questions
{count} votes

Accepted answer
  1. Castorix31 77,191 Reputation points

    XAML controls are drawn by the Direct Composition engine, which uses DIPs

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful