Skip to main content
Home Forums General Silverlight Getting Started Image map paths
3 replies. Latest Post by Pravinkumar R. D. on November 4, 2009.
(0)
EssCee
Member
1 points
4 Posts
11-04-2009 6:22 AM |
I have an image of a theater, which has been broken down by the number of seats in the theater.
What i would like to do, is allow the end user to select the seat they would like to sit at - Even the seats in a corner and the recorded in a database i.e. Seat selected Row A Seat 45. Can this be achieved by Silverlight or is this a bad design option? If yes how could i start? keeping in mind every seat click should not overlap the seat next to it and this image woudl be part of an existing ASP .Net site.
Thanks
Pravinku...
Contributor
4300 points
708 Posts
11-04-2009 6:48 AM |
Hi,
Just a thought. Why don't you think of using Microsoft Expression Design tool to slice the big image of theater using Slice tool and then export those slices in .JPEG format. Then on every image click like seat image, you can call WCF service which will reserve the seat. Then disable the image or make opacity of the image 0.
I am assuming that it is one big image which has all the seats. I did this for one of th small game which I have implemented by SL 2.0.
Check this out - http://pkrd.blogspot.com/2009/03/drag-and-drop-simple-game-in.html
Let me know if this does not work for you.
Thanks,
Pravin
"Please mark as answered, if this answers your question"
11-04-2009 7:01 AM |
Thanks for your reply. Yes its one image that i need to slice. Your example looks pretty good so ill see if i can play with that.
I dont know enough about WCF so will have to give that a miss. If anything i would probably create a link to a SQL server to store details in there?
11-04-2009 7:09 AM |
For WCF Check the below links. It may help you to understand -
http://blogs.msdn.com/swiss_dpe_team/archive/2008/03/17/silverlight-2-beta1-wcf-linq-to-sql-a-powerfull-combination.aspx
http://silverlight.net/learn/tutorials/sqldatagrid-cs/
http://pkrd.blogspot.com/2009/06/silverlight-30-beta-and-wcf-services.html
http://pkrd.blogspot.com/2009/05/consuming-wcf-services-in-silverlight.html