Share via

Feature request - AutoScalling

Tomer.Z 96 Reputation points
2021-01-05T09:44:23.49+00:00

I hope this is the right place to share my thoughts.
Well, as a C# programmer for 12 years but new to mobile UI developer i am having some difficulties which i believe are common.

I am aware there are several workarounds for scaling my app to different screen sizes and resolution, but for a single developer who cannot afford himself more programmers or time to handle those little nuances for Text size and Image size in particular.

I thought it would be enormous benefit to have an autoscale feature.
What was in my mind is as follows:

  1. In app.xaml you will define the design-time resolution and screen size.
  2. Add a boolean property to the "View" class AutoScale which be defaulted to true.

Now as a developer i can define my development environment and at runtime Xamarin engine will automatically calculate the width for each View.
If for some reason i don't wish to resize an element, i can simply declare the AutoScale property to false.
This feature can also be significant improvement instead of NamedSize enum for fonts as i can simply declare the font size i was using during development.

I see this feature extremely helpful to reduce development time and costs.
Thank you.

Developer technologies | .NET | Xamarin
0 comments No comments

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,971 Reputation points
    2021-01-05T11:14:21.763+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    for a single developer who cannot afford himself more programmers or time to handle those little nuances for Text size and Image size in particular.

    To auto scale for the text and image in Xamarin.Forms, we need to achieve the function on each platform. Here are the related topics:
    https://forums.xamarin.com/discussion/184491/how-to-auto-scale-text-in-a-label-to-fit-the-grid-cell-in-xamarin-forms
    https://stackoverflow.com/questions/41395248/xamarin-forms-image-fill-width-with-proper-aspect

    I see this feature extremely helpful to reduce development time and costs.

    If you want to report this function as a feature request, please suggest the idea to the product team on github. Here is the link:
    https://github.com/xamarin/Xamarin.Forms/issues/new/choose

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.