Creating Designer Buttons In Blend 3

No.of Views415
Bookmarked0 times
Downloads 
Votes0
By  dpatra   On  16 Feb 2010 00:02:00
Tag : Silver Light and XAML , How to
Creating Designer Buttons In Blend 3
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

As I have discussed in my previous article on Glassy Buttons, in Silverlight 3 we have normal Button control. For some site or project requirements it needed to be a glassy look. In this article we will be discussing how we can make some Designer Buttons.

Creating a Simple Silverlight Application


Open up Blend 3 and Create a new Silverlight Application.

Image Loading....

In this article I will be showing how you can design different Button Templates. Converting into Button Control is very easy just follow my previous article on Glassy Buttons and you will find what you need.

Making a Button like two opposite corners of the Button are Curved

1) Draw a Rectangle shape with width 140 and height 35, make RadiusX and RadiusY values as 10. Give your required Brush.

Image Loading...

2) Add two Border Controls of width 70 and height 17. And give the Brush similar to the Rectangle.

Image Loading...

3) Remove the Border Thickness from Top and Right Side.

Image Loading....

Do the same for other Border Control, or you can just rotate it to 180 degrees.

Image Loading...

4) Now Combine everything and group into a Grid and then as usual Create a Control select the Button from the menu.

Image Loading...

Image Loading...

Image Laoding...

The Final Button will be like the Following.

Image Loading.....

Creating Styled Buttons with Linear Gradient Brush Effect

1) Draw a Rectangle shape and change the RadiusX & RadiusY to 10 and width as 140 and height as 35. It is the similar rectangle we just drew in the first style.

Image Loading...

2) Select the Brush Transform tool and rotate the arrow, it will look like as following.

Image Loading...

3) Now change the Spread Method to Repeat from Pad. You can even try for Reflect.

Image Loading....

Image Loading...

Image Loading...

4) Now to look better just shrink the arrow a bit to make the design look good.

Image Loading...

Image Loading..

5) That’s it now select the Rectangle and Make it as Control.

Image Loading...

Creating Styled Buttons with Radial Gradient Brush Effect

1) Draw a Rectangle shape and change the RadiusX & RadiusY to 10 and width as 140 and height as 35. It is the similar rectangle we just drew in the first style.

Image Loading...

2) Now Change the Gradient type to Radial Gradient.

Image Loading....

3) Now change the Spread Method to Repeat from Pad. You can even try for Reflect.

Image Loading....

Image Loading....

4) Select the Brush Transform tool and shrink it to a smaller arrow.

Image Loading....

5) Now, go ahead and create the Rectangle into Button Control. It will look similar to the following.

Image Loading....

Hope you liked this article; try for your own design using these techniques that I have used in this article.
Enjoy Animating.

Image Loading....

Thank you


About the Author


Diptimaya Patra

Description :I am a Master in Computer Application (MCA) from SRM University, Chennai. I am MCTS in ASP.Net Web Development, and MOSS 2007 Administration. I have extreme exposure to Microsoft Technologies in recent times like Silverlight 2, Silverlight 3. I am from Cuttack, Orissa. You can reach me using this mail (diptimaya.patra@gmail.com). Currently I am working as a Software Engineer in UST Global Inc in Trivandrum Center.

Occupation :Software Engineer
Company : UST Global.
Location : India
Follow me at twitter : http://twitter.com/dpatra


 
Sign Up to vote for this article
 
About Author
 
dpatra
Occupation-Not Provided
Company -Not Provided
Member Type-Expert
Location-Not Provided
Joined date-13 Jul 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top