Skip to content

Scaling of root VisualElement is ignored #11751

Open
@ultradevel

Description

@ultradevel

Description

If you set the Scale property for the root VisualElement of a MAUI application (no matter if shell or page), it has no effect.

Background

MAUI applications are rendered strangely large on Windows. They are about 1.5 times the size of the Mac application on the same screen.

To give the user the same experience on Windows and Mac, the Windows application must be scaled smaller (by a factor of 0.66).

Since each VisualElement has a Scale property, that seems to be the way to go.

However, unfortunately, the setting of Scale at the root VisualElement of the application is ignored.

Steps to Reproduce

  1. Create a New .NET MAUI App from the template
  2. Set the Scale property of the root VisualElement (the MainPage) to any factor, for example 0.67
  3. Build and run the app

Link to public reproduction project repository

https://github.com/ultra133/ListTest.git

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

All

Did you find any workaround?

No

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions