<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx</link><description>&amp;#160; &amp;#160; Let’s say your site is entirely written in Silverlight but you want to be able to load and run a different Silverlight application within your main Silverlight application/site. Currently this scenario is not directly supported in Silverlight</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#224763</link><pubDate>Tue, 26 May 2009 18:27:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:224763</guid><dc:creator>bharat_gupta@live.com</dc:creator><description>&lt;p&gt;This is really good&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=224763" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#194908</link><pubDate>Tue, 24 Mar 2009 22:06:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:194908</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;Sorry, this is all I currently have.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=194908" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#194690</link><pubDate>Tue, 24 Mar 2009 17:53:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:194690</guid><dc:creator>ClosDesign</dc:creator><description>&lt;p&gt;ARe there any working examples of this? No just images but actual live examples&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=194690" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#187678</link><pubDate>Fri, 13 Mar 2009 15:19:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:187678</guid><dc:creator>Gabriel_1956</dc:creator><description>&lt;p&gt;I've tried it, but there is one problem. After hiding and redisplaying the second div I can't load the xap file. After first click (which calls ShowUserDetails) I see div with dummy.xap. After second click the xap is loaded with correct user id (coming from main xap). &lt;/p&gt;
&lt;p&gt;Whithout setting &amp;quot;style.display&amp;quot; ( or visibility or zindex ) there are no issues.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;function ShowUserDetail(id) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var div = document.getElementById(&amp;quot;Div2&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;div.style.display = &amp;quot;block&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var slCtl2 = document.getElementById(&amp;quot;slv2&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;slCtl2.setAttribute(&amp;quot;Source&amp;quot;, &amp;quot;userdetail.xap&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;slCtl2.setAttribute(&amp;quot;InitParams&amp;quot;, &amp;quot;id=&amp;quot; + id);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (e) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;showError(e);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;function HideSecond() {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var slCtl2 = document.getElementById(&amp;quot;slv2&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;slCtl2.setAttribute(&amp;quot;Source&amp;quot;, &amp;quot;dummy.xap&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var div = document.getElementById(&amp;quot;Div2&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;div.style.display = &amp;quot;none&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (e) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;showError(e);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=187678" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#178280</link><pubDate>Mon, 23 Feb 2009 22:16:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:178280</guid><dc:creator>Jelgab</dc:creator><description>&lt;p&gt;From the initial Silverlight control, you can also use this code to display the second control without having to write extra JavaScript:&lt;/p&gt;
&lt;p&gt;System.Windows.Browser.HtmlPage.Document.GetElementById( &amp;quot;myDIV&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;).SetStyleAttribute( &amp;quot;display&amp;quot; &amp;nbsp; , &amp;quot;block&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/p&gt;
&lt;p&gt;System.Windows.Browser.HtmlPage.Document.GetElementById( &amp;quot;Silverlight1&amp;quot; ).SetAttribute &amp;nbsp; &amp;nbsp; ( &amp;quot;Source&amp;quot; &amp;nbsp; &amp;nbsp;, &amp;quot;ClientBin/Mostrar2oControl2oSilver.xap&amp;quot; );&lt;/p&gt;
&lt;p&gt;System.Windows.Browser.HtmlPage.Document.GetElementById( &amp;quot;Silverlight1&amp;quot; ).SetAttribute &amp;nbsp; &amp;nbsp; ( &amp;quot;InitParams&amp;quot;, &amp;quot;AnyParam=AnyValue&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/p&gt;
&lt;p&gt;The third line (With &amp;quot;InitParams&amp;quot;) would be to be able to send information from one Silverlight control to the other one.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=178280" width="1" height="1"&gt;</description></item><item><title>Silverlight Tips of the Day - Summary Outline</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#160645</link><pubDate>Wed, 14 Jan 2009 20:01:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:160645</guid><dc:creator>Silverlight Tips of the Day - Blog by Mike Snow</dc:creator><description>&lt;p&gt;The purpose of this post is to create an outline summary all the blogs from my Silverlight Tips of the&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=160645" width="1" height="1"&gt;</description></item><item><title>Toutes les astuces pour mieux utiliser Visual Studio  : Astuce Silverlight : comment charger dynamiquement un contr&amp;#244;le Silverlight dans un autre contr&amp;#244;le Silverlight ? - #S001</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#129504</link><pubDate>Wed, 12 Nov 2008 10:15:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:129504</guid><dc:creator>Toutes les astuces pour mieux utiliser Visual Studio  : Astuce Silverlight : comment charger dynamiquement un contrôle Silverlight dans un autre contrôle Silverlight ? - #S001</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Toutes les astuces pour mieux utiliser Visual Studio &amp;nbsp;: Astuce Silverlight : comment charger dynamiquement un contr&amp;amp;#244;le Silverlight dans un autre contr&amp;amp;#244;le Silverlight ? - #S001&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=129504" width="1" height="1"&gt;</description></item><item><title>Astuce Silverlight : comment charger dynamiquement un contr??le Silverlight dans un autre contr??le Silverlight ? - #S001 | MS Tech News</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#118947</link><pubDate>Tue, 28 Oct 2008 06:32:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118947</guid><dc:creator>Astuce Silverlight : comment charger dynamiquement un contr??le Silverlight dans un autre contr??le Silverlight ? - #S001 | MS Tech News</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Astuce Silverlight : comment charger dynamiquement un contr??le Silverlight dans un autre contr??le Silverlight ? - #S001 | MS Tech News&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=118947" width="1" height="1"&gt;</description></item><item><title>MS Tech News &amp;raquo; Silverlight Tips of the Day ??? Week 8</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#118555</link><pubDate>Mon, 27 Oct 2008 19:31:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118555</guid><dc:creator>MS Tech News » Silverlight Tips of the Day ??? Week 8</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;MS Tech News &amp;amp;raquo; Silverlight Tips of the Day ??? Week 8&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=118555" width="1" height="1"&gt;</description></item><item><title>MS Tech News &amp;raquo; Silverlight Tips of the Day ??? Week 8</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#118539</link><pubDate>Mon, 27 Oct 2008 19:25:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118539</guid><dc:creator>MS Tech News » Silverlight Tips of the Day ??? Week 8</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;MS Tech News &amp;amp;raquo; Silverlight Tips of the Day ??? Week 8&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=118539" width="1" height="1"&gt;</description></item><item><title>Silverlight Tip of the Day #57 ??? How to Dynamically Load a Silverlight Control within another Silverlight Control - Silverlight Tips of the Day - Blog by Mike Snow</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#109178</link><pubDate>Tue, 14 Oct 2008 20:51:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:109178</guid><dc:creator>Silverlight Tip of the Day #57 ??? How to Dynamically Load a Silverlight Control within another Silverlight Control - Silverlight Tips of the Day - Blog by Mike Snow</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Silverlight Tip of the Day #57 ??? How to Dynamically Load a Silverlight Control within another Silverlight Control - Silverlight Tips of the Day - Blog by Mike Snow&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=109178" width="1" height="1"&gt;</description></item><item><title>Dew Drop - October 9, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#107069</link><pubDate>Sun, 12 Oct 2008 22:02:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:107069</guid><dc:creator>Dew Drop - October 9, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop - October 9, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=107069" width="1" height="1"&gt;</description></item><item><title>Post: 193</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#106637</link><pubDate>Sat, 11 Oct 2008 14:48:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:106637</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;Post: Approved at: Oct-11-2008 Silverlight 2.0 to be Released to the Wild Monday? It appears that Silverlight&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=106637" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#106576</link><pubDate>Sat, 11 Oct 2008 09:20:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:106576</guid><dc:creator>codebased</dc:creator><description>&lt;p&gt;you can do that through dynamically loading of two xap file and read all dlls and load into the memory once it is done all yo have to do is create an object and show it :)&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=106576" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/10/08/silverlight-tip-of-the-day-57-how-to-dynamically-load-a-silverlight-control-within-another-silverlight-control.aspx#105815</link><pubDate>Fri, 10 Oct 2008 00:08:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105815</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;Sariel - I am not aware of any way for two separate controls to share the same Isolated Storage. For security reasons I belive they are kept private to the individual apps.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=105815" width="1" height="1"&gt;</description></item></channel></rss>