c# - Force text length + trimming -


i'm using bindings populate listbox, textblocks, etc.

the question :

how make sure text bound the text property of textblock of specific length, or displayed trimmed @ specific character length (e.g. "some very long t..."), text doesn't "overflow" phone screen or container?

since mango sdk, there property call texttrimming.

so xaml

<textblock text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" texttrimming="wordellipsis" width="200" /> 

will produce somehting "aaaaaaa....."


Comments

Popular posts from this blog

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -