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.

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.

2) Add two Border Controls of width 70 and height 17. And give the Brush similar to the Rectangle.
3) Remove the Border Thickness from Top and Right Side.

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

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



The final button will be like the following.

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 drawn in the first style.

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

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



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


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

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.

2) Now change the Gradient type to Radial Gradient.

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

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

5) Now, go ahead and create the Rectangle into Button Control. It will look similar to the following.
Hope you liked this article; try for your own design using these techniques that I have used in this article.
Enjoy Animating.

Alan BeasleyPosted Mar 23, 2010, 11:12 AM
Hi ya, It seems a but convoluted what your doing, when trying to generate a button with 2 square corners, & 2 with a radius. Do you not know that a border element can have a radius applied individually to each corner? Drag a border on to the Arboard & set the corner radius to this: 20,0,20,0 This will put a radius of 20 on the top left & bottom right corners, but nothing on the top right or bottom left corners. Hope that helps, & check out my button tutorial at: http://www.codeproject.com/KB/expression/ExpressionBlendButtons.aspx Cheers, Alan
Srividhya GopalakrishnanPosted Jul 28, 2009, 2:16 PM
Hi, I am new to silverlight.. How to use the glassy button concept as a style? In my website i have to create 3 to 4 buttons which i have placed them already in a grid. do i need to do the same thing for all four buttons or can i use it as a style class so that i wont repeat doing the same task. Thanks
Diptimaya PatraPosted Jul 24, 2009, 3:30 AM
Hi Nikhil, If you want to install Silverlight 3 in your system you need to have the following requirements 1) Visual Studio 2008 (Team Suite/Professional) SP 1 Then you need to download the following setup files and install in order. 1) Silverlight 3 Runtime 2) Silverlight 3 Tools for Visual Studio 3) Silverlight 3 Toolkit July Release 4) Microsoft Expression Blend 3 + SketchFlow (Optional software for design) If you want to learn Silverlight 3 from the basic itself. Follow the below link, you will find study videos http:\\silverlight.net\learn Thanks Diptimaya Patra
Nikhil KumarPosted Jul 23, 2009, 11:49 PM
hello sir i am using vs 2008 but i don't know that how to work with silverlight and i don't have the silverlight software so please tell me which software i have to required to work with silverligth and from where i can get it.. thanks www.dotnetask.blog.co.in