Skip to content

DeviceIdiom detects notebook as tablet #24596

Description

@lenardg

Description

There was an issue on this already, #11126 , that has already been fixed in MAUI 7 and 8.

However, we are now seeing this behavior again with the latest MAUI version. We have a ThinkPad P1 Gen 3 notebook that has a touchscreen. This device is detected as DeviceIdiom.Tablet. Note that it is not possible to fold the screen into tablet mode, this is a regular notebook.

We use Windows 10 and tablet mode is OFF. In fact, the notebook is connected to a dock, the internal (touch) display is off and an external keyboard and mouse is connected.

I think DeviceIdiom should not be Tablet at this point.

Steps to Reproduce

Just read DeviceInfo.Current.Idiom on this device, which will say Tablet.

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows target 10.0.19041

Did you find any workaround?

For our purposes we can treat WinUI always as a desktop:

IsDesktop =
		DeviceInfo.Current.Platform == DevicePlatform.WinUI ||
		DeviceInfo.Current.Idiom == DeviceIdiom.Desktop;

But I think this is wrong behavior.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoplatform/windowss/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versiont/bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions