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

MVVM binding question

$
0
0

Is there a way to define a max number of chars when binding a label to a long text? For example, I would like to display the first 20 chars in a list.

My underlaying problem is that I have a ListView that displays a list of entries in a log. The entries description can be long so I'd like to shorten them. I could (and probably should) map the entries to a new object that only exposes the short version of the description and not the entities directly.

So this is mostly an academic question. :)

// Johan


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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