Skip to main content

Microsoft Silverlight

Answered Question silverlight media element and imageRSS Feed

(0)

TheRekz
TheRekz

Member

Member

4 points

40 Posts

silverlight media element and image

I want to do a very simple thing using silverlight... say I have an image and then on a particular spot on an image when I click on that part, I want it to pop the video using silverlight MediaElement, can someone please guide me how can I do this?? Or if there's a tutorial about this on the web.. can you please point that out? It shouldn't be too hard right?

pbrooks
pbrooks

Contributor

Contributor

2671 points

355 Posts

Silverlight MVP
Answered Question

Re: silverlight media element and image

I'm assuming you want to do something similar to an image map in HTML.  One way you could acheive this is by drawing path elements with a transparent fill color over the image in the spots that you want to be clickable.  Then on the MouseLeftButtonDown event handlers (for each path element), you could pop up the video with the media element.

A few resources:

http://silverlightuk.blogspot.com/2007/11/silverlight-image-map.html

http://silverlight.net/forums/t/1850.aspx

 

If this has answered your question, please click on "Mark as Answer" on this post.

Thanks,
Page Brooks
Silverlight MVP, MCSD
PageBrooks.com | @pbrooks
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities