Disable AutoFontScaling in Somo Elements

1 Answer 85 Views
ComboBox DatePicker
Rafael
Top achievements
Rank 1
Iron
Iron
Rafael asked on 04 Nov 2024, 10:31 PM
I'm working with .net maui 8 in a mobile App and the last feature i'm working is the disable of the autofont scaling in all app because when a user set the font size higher in the accesibility settings the app doesn't react very well, so i'm disabling these feature for now in all present components but i'm can't edit certains components of telerik like ComboBox (i used a control template for this) and now the DatePicker in need to set this property on the Selector of the popup, i can fix this feature in all parts of the component except this.

This is how the date picker is showed in iOS.

I know i can edit the display label, the place holder, popup header label, the footer, the buttons, but what about the content of the popup?, i only want to set some font/text properties and i don't know how to accomplish this and i don't find any of documentation about this part.

1 Answer, 1 is accepted

Sort by
1
Accepted
Didi
Telerik team
answered on 05 Nov 2024, 07:40 AM

Hi Rafael,

The behavior is logged here: https://feedback.telerik.com/maui/1633597-picker-numbers-are-too-big-for-the-date-and-time-pickers-when-increasing-the-system-font-size 

And there is a solution in the link above for the placeholder, display label, header, etc. You can use the exposed styles: https://docs.telerik.com/devtools/maui/controls/datepicker/styling/styling Regarding to the dates, I am afraid there isn't a solution I can suggest on control level. I have raised the priority of this issue. 

As a general solution, I can suggest you stop the auto scaling on app level. Here is an example: https://learn.microsoft.com/en-us/answers/questions/1611437/how-can-i-prevent-the-device-font-size-effect-of-a  you can also search for different approaches. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ComboBox DatePicker
Asked by
Rafael
Top achievements
Rank 1
Iron
Iron
Answers by
Didi
Telerik team
Share this question
or