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

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -