In this article we will see how we can wrap
a text in Hyperlink Button.Creating Silverlight
Fire up Visual Studio 2008 and create a new Silverlight
3 Project. Name it as HyperlinkTextWrap.
proceeding I wish to tell you that, there is no TextWrapping property for
We can achieve it two ways.
First create two
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.
this article helps.