[Android]Update FontSize at Runtime programatically in MAUI. #17895
-
Hi team, I have a requirement to update font size for label, entry, and 3rd party combobox when the user taps on a button in Shell.TitleView. Implemented below code to update custom value,
Tested in Android, ye to in iOS Could anyone help to resolve this issue? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you explain what the purpose of the lines:
Are? I don't use "StyleSheets" so I am not sure how these work. But what is the point? If you just want to set the label.FontSize why not create an event in your app wherever it needs to happen like:
Then on your TapGestureRecognizer or however you're recognizing the user input to change the font size have it run:
And have your labels that need to respond to this subscribed to the event like:
Something like that is how I would handle it personally from what you're describing. |
Beta Was this translation helpful? Give feedback.
Can you explain what the purpose of the lines:
Are? I don't use "StyleSheets" so I am not sure how these work. But what is the point? If you just want to set the label.FontSize why not create an event in your app wherever it needs to happen like:
Then on your TapGestureRecognizer or however you're recognizing the user input to change the font size have it run:
newFontSi…