Skip to main content
Home Forums Silverlight Programming Programming with JavaScript How to send xml to silverlight application?
2 replies. Latest Post by mrjvdveen on June 18, 2009.
(0)
Shiran
Member
0 points
13 Posts
06-18-2009 1:34 AM |
I have a window form application, I want that the button_click event will open a silverlight application and send a long xml from the windows form application to the silverlight application. how can I do that?
SharpGIS
Contributor
3387 points
611 Posts
06-18-2009 2:36 AM |
You cannot directly connect between windows forms and silverlight.
You will have to have your WIndows application send the XML to a service running on an HTTP website. Next have Silverlight download it from that server.
mrjvdveen
Participant
1937 points
366 Posts
06-18-2009 2:41 AM |
One way would be to dynamically generate a HTML file where the XML is a parameter for the object in HTML. This way you could access it from Silverlight. There is a great video on this, right here on silverlight.net. Or you could make a JS function that returns the XML in your HTML page and access that function from Silverlight.
HTH.