Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Bug] DisplayInfo.Density: documentation is incomplete #1474

@janusw

Description

@janusw

https://docs.microsoft.com/en-us/dotnet/api/xamarin.essentials.displayinfo.density simply says:

Gets a value representing the screen density.

and

Property Value
Double
The screen density.

No word about the unit or how to interpret this value at all.

Looking at the source code (https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/DeviceDisplay/DeviceDisplay.uwp.cs#L60) one can guess that the number represents multiples of 96 dpi, at least on UWP. No idea if it will be the same on all platforms (but I certainly hope so).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions