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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -