(X) Hide this Upcoming webinar on Feb 23rd, 10 am PST (see your local time): Building Line-of-business Applications with Silverlight & WCF Data Services
More webinar info | Register | Other webinars
Tweet @silverlightshow and win a SilverlightShow Tweet-shirt. Learn how >>
Skip Navigation LinksHome / News / View News

Automatically Showing ToolTips on a Trimmed TextBlock in Silverlight

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jan 06, 2011
(0 votes)

In this blog post, Colin Eberhardt describes a simple method for automatically showing the full text as a tooltip whenever the text in a TextBlock is trimmed.

Source: ScottLogic

The TextTrimming feature of SL4 allows us to worry a little less about the layout of our applications, giving the option to use fixed widths when rendering text. This can be particularly useful if you have to localize your application. However, arbitrarily trimming the text without providing the user with a mechanism to see the full text is not great for the user. A simple solution is to use a tooltip to present the full text.
Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 1 and 4 and type the answer here: