Spherical Glass Buttons in WPF and Silverlight

I long while back I post an article about Making a Glass Ball act like a Glass Button using Expression Blend and WPF. Well a reader asked me if I could share the code for these glass buttons so I’ve added a resource dictionary to my SkyDrive with the following Button templates:

image

Unfortunately this version is out of date, and I seem to have lost the original code which was more functionally complete, as you can see disabled buttons don’t fade, they used to turn to transparent glass buttons. Looking back on this my main criticism would be that the colour of the button is difficult to change, I’d have preferred if the background could be adjusted just by changing the BackColor property on a button but the gradients are just too complex to achieve this at the moment.

Hope this helps someone!

http://cid-17124d03a9a052b0.skydrive.live.com/embedicon.aspx/Public/GlassButtonResources.xaml

Advertisements
  1. #1 by WPFAdmin on January 11, 2013 - 4:09 am

    Hi,

    here are the simple example code of creating the Glass button

    http://wpftutorial.co.in/WPFControlls/WPFGlassButton.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: