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

Is there a way to tell if a label will truncate text?

$
0
0

I have an iOS implementation I am trying to port to forms.
In the iOS version I show full names but if the name will be longer than the field width I use first initial and last name, if it still doesnt fit then it gets truncated with ellipses. Basically in my iOS version I measure the text using nsstring.GetSizeUsingAttributes.

Is there a way I can do this in Forms?

Maybe I can make a custom binding converter or something, just not sure if there is a similar way to measure text.

Thanks,
Jason


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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