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

Harshithraj1871 1,536 Reputation points
2023-08-31T09:54:21.9933333+00:00

Hi,

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.
784 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,619 questions
{count} votes

Accepted answer
  1. Castorix31 85,136 Reputation points
    2023-08-31T10:56:53.3666667+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.