Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to identify largest font size for a label, to fit in a specified amount of space

$
0
0

I need to fit a Label in the space available to the left of other controls, after those other controls have been positioned. On a phone in portrait mode, there isn't much space available, so I need to adjust the font size of the Label until the Label fits without being clipped. Can anybody tell me please how to identify at run-time the largest font that I can use for a Label without the Label being clipped?

Many thanks,

John H.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>