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


Top 5 Contributors of the Month
david stephan

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.
 

Introduction

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.

1.gif

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.

2.gif

Hope this article helps.
 Subscribe to Articles

     

Further Readings:

Responses

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