Skip to main content
Home Forums Silverlight Programming Programming with JavaScript silverlight media element and image
1 replies. Latest Post by pbrooks on June 9, 2009.
(0)
TheRekz
Member
4 points
40 Posts
06-08-2009 1:02 AM |
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
Contributor
2671 points
355 Posts
06-09-2009 9:30 PM |
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