c# - Force text length + trimming -
i'm using bindings populate listbox
, textblock
s, 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
Post a Comment