shakarchi
shakarchi

Reputation: 43

Silverlight / WPF communication

I have a WebBrowser control showing a Silverlight application. This control is in a WPF application. Obviously this is a bit of a hack to integrate Silverlight with WPF as ultimately neither one knows about each other, they're completely independent.

So what I need is for Silverlight to post a value into the WPF application. What I was thinking was using JavaScript hosted in the .aspx page in the Silverlight application which can be accessed from both Silverlight and WPF. I think it is fairly simple getting data from Silverlight to the .aspx page but I'm not sure how to get the data from the .aspx page to WPF. Ideally I don't want WPF to have to call for the data, I want it to be posted from Silverlight and appear in the WPF application without WPF having to do anything except receive and display the data.

Hmm...hope that makes sense.

Upvotes: 1

Views: 296

Answers (1)

Related Questions