Skip to main content

Microsoft Silverlight

Answered Question MouseOver control helpRSS Feed

(0)

ddni_nk
ddni_nk

Member

Member

6 points

53 Posts

MouseOver control help

I am trying to create a mouse over control similar to the one found on this page: http://www.colaab.com/Index.aspx (see the three banners for "Mashable", "Web Worker Daily", and "Microsoft"). Initially the three banners are greyed out, but upon mouse over they get color.

 How can I go about doing this? Do I use a greyed out image and then on mouse over set a colored version of the banner to visible?

 

Any help will be greatly appreciated.

ksleung
ksleung

Contributor

Contributor

5366 points

1,028 Posts

Re: MouseOver control help

One possibility is to use PixelShader to gray out the image, with one variable "Fade" to interpolate between the grayscale and the color image.  Search for WPF Effects Library for more detail (WPF Pixel shader effects is compatible with Silverlight, with a very minor syntax tweak).  There are some transition demos and you can start from there.

milind.soman
milind.s...

Member

Member

389 points

72 Posts

Re: MouseOver control help

You are right ddni_nk,

This experience could be achieved by the approach which you are thinking till you are using Silverlight 2. For Silverlight 3 as Ksleung said you can use pixel shader effect to achieve same experience.

Please "Mark as Answer" if this answered your question.

Sr. User Experience Consultant
SpadeWorx Software Services,
Pune, India.

paru
paru

Member

Member

164 points

28 Posts

Re: MouseOver control help

Do you mean the blurr effect or should we have some 3rd party :)

Thanks
Paru

--mark as answer if helped

milind.soman
milind.s...

Member

Member

389 points

72 Posts

Answered Question

Re: MouseOver control help

In case of silverlight 3, i does not mean using blur effect to achieve your desired experience. There is a tool called 'Shazzam' which helps in creating pixel shader effects. Have look at the link http://shazzam-tool.com/ & to know more about pixel shader effects see http://www.andybeaulieu.com/Home/tabid/67/EntryID/145/Default.aspx

http://www.codeplex.com/wpffx

Please "Mark as Answer" if this answered your question.

Sr. User Experience Consultant
SpadeWorx Software Services,
Pune, India.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities