I don't think it is supported in SL2 if you are talking about the cross-browser local messaging. I imagine it'd be very hard to do without native SL support.
Visit http://www.tagxedo.com, a Silverlight-based word cloud generator. If you like it, please help me spread the word!
the only way to achieve this in SL2 is using HtmlBridge. You have to tunnel your request from a plugin instance to another using javascript. This article show some code to do this:
The communications between different UserControls or Siverlight applications is supported on Silverlight 3 by using its
LocalConnection API. In Silverlight 2, we can use HtmlBridge way or use WCF to communicate.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
vijjinvijju
Member
19 Points
41 Posts
Local messaging communication in sl2
Apr 28, 2009 08:11 AM | LINK
Hi
is there any way to perform usercontrol communication in sl2 though difficult?
Project Engineer
ksleung
Contributor
6680 Points
1265 Posts
Re: Local messaging communication in sl2
Apr 28, 2009 08:17 AM | LINK
I don't think it is supported in SL2 if you are talking about the cross-browser local messaging. I imagine it'd be very hard to do without native SL support.
vijjinvijju
Member
19 Points
41 Posts
Re: Local messaging communication in sl2
Apr 28, 2009 08:23 AM | LINK
I want it in a so simple manner. I have control1.xaml where i have a textbox and a button and control2.xaml where i have a textbox.
In control3.xaml i am using both these usercontrols. Once i click on the button, i should show the control1.textbox text in control2.textbox.
Is there anyway i could achieve it?
Suggestions are helpful.
Project Engineer
codeblock
Contributor
4070 Points
716 Posts
Re: Re: Local messaging communication in sl2
Apr 28, 2009 08:34 AM | LINK
the only way to achieve this in SL2 is using HtmlBridge. You have to tunnel your request from a plugin instance to another using javascript. This article show some code to do this:
http://blogs.ugidotnet.org/dsenatore/archive/2009/03/08/silverlight-2-communication-between-modules-hosted-in-a-page.aspx
The article is in italian but I think the code is international :)
HTH
--
Andrea Boschin
MVP Silverlight & Silverlight Insider
Silverlight Playground, Me on Twitter
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: Local messaging communication in sl2
May 04, 2009 07:17 AM | LINK
Hi Vijjinvijju,
The communications between different UserControls or Siverlight applications is supported on Silverlight 3 by using its LocalConnection API. In Silverlight 2, we can use HtmlBridge way or use WCF to communicate.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework