dotnet / dotnet/maui

Scaling of root VisualElement is ignored

Open
#11,751 4 comments 0 reactions 0 assignees View on GitHub
area-animation area-controls-general platform/android platform/ios platform/macos platform/windows s/triaged t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.