.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT

Home >> Articles >> Silverlight >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Text Wrap in Hyperlink button control In Silverlight

Posted By:Diptimaya Patra       Posted Date: March 24, 2010    Points: 25    Category: Silverlight    URL: http://www.dotnetspark.com  

Text Wrap in Hyperlink control In Silverlight. In this article we will see how we can wrap a text in Hyperlink Button.


In this article we will see how we can wrap a text in Hyperlink Button.

Creating Silverlight Project

Fire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as HyperlinkTextWrap.


Before proceeding I wish to tell you that, there is no TextWrapping property for Hyperlink Button.

We can achieve it two ways.

First create two Hyperlink Buttons.

By default the Text is taken by the Content property. So if you are restricting the Hyperlink Button's width the Text will be invisible after the provided width.

We will add a Content Manually as follows and will fix the width.


Using the above method wraps the Text of the Hyperlink after a certain width.

If you have Grid Panel used in your application you can use the next method for Text Wrapping. It doesn't need a fixed width but it wraps the Text.


We can provide anything to Hyperlink as it contains the Content property.


Hope this article helps.
 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend