Using a Style to Simulate TextTrimming on TextBox - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Sunday, April 22, 2012

Using a Style to Simulate TextTrimming on TextBox

The WPF/Silverlight TextBox control lacks the TextTrimming property. Use a control template to add TextTrimming to TextBox.

Want more Silverlight tips and tricks? Watch my Silverlight 5 Essential Training course. We've all encountered the textbox that is too narrow to hold the text contents. Here's an example from Visual Studio 2010.

The default behavior of the textbox is to truncate the text. There is no visual feedback to the user that there is more text available, other than the textual context. In other words, it is up to the user, to perceive that there is additional text that is not visible in the control

Read More from: Original Source

No comments:

Post a Comment