Before, when we want to display a long string in a Silverlight page, we create StringConverter just to cut the string and add ... or ellipsis at the last part. Now, we just use this:
<TextBlock Text="the quick brown fox jumps over the lazy dog" TextTrimming="WordEllipsis"/>
This will let the silverlight check the width of the holder of the text then cut the text and add ... or ellipses at the end.
Nice additional feature of Silverlight.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment