Skip to main content

Microsoft Silverlight

Answered Question Image rollover on mousenter and mouseleave eventRSS Feed

(0)

Sony india
Sony india

Member

Member

0 points

1 Posts

Image rollover on mousenter and mouseleave event

Hi,

I am having problem with image rollover in silverlight application. given image x:name  and added mouse enter event handler in xaml. can any one please tell me how to write the code in code behind of xaml.cs file. in other forums everybody mentioned in html tags like that...but i need in xaml code behind.

or

how to write the java script function for the image roll over and how to call that function in xaml code behind? tried few ways but throwing errors ...

please anybody help me in this with the code...(javascript function) and calling that in xaml code behind file.

i tried out:- by calling

htmlpage.windows.invoke("") for the javascript function but still throwing errors...plspls help me in this...

thanks in advance..have a great day.

 

 

isanam
isanam

Member

Member

85 points

30 Posts

Answered Question

Re: Image rollover on mousenter and mouseleave event

Are you using any of the standard IDEs for Silverlight development? (Expression blend or visual studio). These tools will reduce lot of your work  and do many anythings for you automatically.

 

If you are using expression blend to create user interface design then you can do it through the events panel for the selected image.

Select the image in design view of XAML. On right hand side you will get to see event's panel which lists down all possible events like rollover. Type name of a function that you want call on the specific event. Press enter, now if you have visual studio installed. The code behind file will automatically get opened in VS and there you can edit it.

But if you are already using VS for editing your SL application then it should be quite simple to find the code behind file and add necessary events functions.

Cipher Isanam
-------------------
Information Dashboard Development

Winxnet
Winxnet

Member

Member

2 points

1 Posts

Re: Image rollover on mousenter and mouseleave event

In blend 3 there does not appear to be a "rollover" event. There is however a "mouseenter" and "mouseleave" event.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities