Disable the scaling on app level/platform level

Dani_S 3,806 Reputation points
2024-11-28T12:19:46.2433333+00:00

Hi,

The behavior happens with maui controls is expected when changing the scale.

The ui of contrl can be cut  if you there is a definitive height set to the border/element.

Is there any way to disable the scaling on app level/platform level ?

I'm using .Net 8 in maui app.

Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,696 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 45,181 Reputation points Microsoft Vendor
    2024-11-29T02:45:55.74+00:00

    Hello,

    Is there any way to disable the scaling on app level/platform level ?

    Because applications are at a lower level than the platform and system, you cannot disable scaling in applications. A feature that can limit system functionality is dangerous to the user of the application.

    In Maui, if you want to avoid the situation where the control cannot be fully displayed, you should use Grid's ability to dynamically control the size of the control through proportion to reconstruct the page.

    The .NET Multi-platform App UI (.NET MAUI) Grid, is a layout that organizes its children into rows and columns, which can have proportional or absolute sizes. By default, a Grid contains one row and one column. In addition, a Grid can be used as a parent layout that contains other child layouts.

    Please refer to the following documentation for more details.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

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.