(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

TextTrimming TextBlock for Silverlight

(0 votes)
0 comments   /   posted by Silverlight Show on Aug 04, 2009
Tags:   TextBlock , Effects
Robby Ingebretsen found out that the ability to tell TextBlock to truncate its text to ellipses if it runs out of room is missing in Silverlight and wanted to do something about it.

There’s plenty of room for improvement here. Specifically, I’m just shortening the text one character at a time. I’m pretty confident that could be improved. Also, I only have the equivalent of TextTrimming=”CharacterEllipses” and not TextTrimming=”WordEllipses” but that one should be pretty easy to add too.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter