.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

HyperLink in Button style in Silverlight

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

HyperLink in Button style in Silverlight. In this article I will show you how can you style your Hyperlink to look like a Button.
 

Introduction

In this article I will show you how can you style your Hyperlink to look like a Button.

Add a HyperLink Button to your application and select Edit Template.

hyperlink1.gif

Keep the following controls and delete others.

hyperlink2.gif

Select the Border and change it's Background Brush and Border Brush to Button style.

hyperlink3.gif

Here is the Style in xaml format.

 

Now after setting the above style to the Hyperlink Button will change the style, you need to adjust the height to minimum 25 pixel.

Remember by default the ForeGround Brush is as Hyperlink Button. Change the Hyperlink ForeGround from the design and set it to Black.


Hope this article helps you.
 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