Replies: 4 comments 6 replies
-
@TFreudi1 can you link this feature here, I couldn't find it on Xamarin Community Toolkit |
Beta Was this translation helpful? Give feedback.
-
A feature like this was almost added to Xamarin, but was closed because it was a new feature and MAUI was the focus. But I've created this issue in the MAUI repo - dotnet/maui#10884 |
Beta Was this translation helpful? Give feedback.
-
@TFreudi1 I have the same trouble. I'm currently working on a widget based dashboard and want them to be resizable. The label fontsize is not responsive, so it looks very odd. I don't want to polute the ViewModel with OnLayout change events just to update the font size. I saw that the MauiToolkit is having an OnScreenSize behavior at some point, which can at least handle different screen sizes but that doesn't help really much in this case. I wrote a small behaviour that can attach to another controls property (width/height..) and size the font width with some multiplier. I rarely do any frontend work and have almost no skills with Xaml and such, so I don't know how good that actually is. But for me it gets the job done until the SizeFontToFit feature is there. Considering, it will be there in MAUI at some point. You can use it if you like. Use it like so:
Might be useful to put the actual font spacing/width into consideration or some other things I currently have no idea about. :D |
Beta Was this translation helpful? Give feedback.
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
-
I have Xamarin projects that I want to port to MAUI that make use of LabelSizeFontToFit effect from the xamarin toolkit.
I don't find a similiar behaviour in current MAUI Toolkit.
The MAUI team itself move a similiar feature from milestone to milestone :-(
Beta Was this translation helpful? Give feedback.
All reactions