Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Hover Effect on Image Button
2 replies. Latest Post by vincracker on July 3, 2009.
(0)
danishali
Member
0 points
4 Posts
07-03-2009 3:41 AM |
Dear All
I have created buttons from image icons.
My scinerio is that i have few icons i.e. Add,Update,Edit,Delete...Kinda Toolbar.... What i need to do is to get effect on hover .. anything will do just to show that they are in focus....
i dont wanna use animation. is there any easy way of doing it....
Please , provide some suggestions.
Thanks Alot
HarshBar...
Star
9908 points
1,719 Posts
07-03-2009 8:50 AM |
Hi,
You can change Content Template for button in Expression Blend and change mouse over state.
vincracker
Contributor
3116 points
522 Posts
07-03-2009 8:55 AM |
If you don't want to use animation then we can use classic html way of replacing image when hover. You can use MouseEnter and MouseLeave events for Image and make it look like hover effect.
Another approach is to scale your image little. Like when user hover over the image, make it little bit big. For this you can use ScaleTransformation.
Another and very simple way is to put a border outside the image and apply significantly wide border, when mouseEnter in image, make that border visible and when leave just collapse it.