Skip to main content
Home Forums General Silverlight Hosting and Streaming Downloading the xap files as per the page requirement
2 replies. Latest Post by Min-Hong Tang - MSFT on November 5, 2009.
(0)
ramya.mt
Member
9 points
28 Posts
11-02-2009 12:47 AM |
Is there a way to download the xap of an entire silverlight app as per my aspx page requirements? I mean.. If I have 3 SL pages in the silverlight app and want to download the xap corresponding to only one SLPage when the app runs. Is it possible?
shamrat231
Contributor
4717 points
595 Posts
11-02-2009 3:13 AM |
By 3 sl pages..i hope u mean three xaml pages like (page1.xaml, page2.xaml...) , don't get what u mean by downloading the application but u can change the see which xaml to show in which aspx page by using this.
By default, page.xaml/mainpage.xaml is set, in app.xaml.cs like this,
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new Page(); // change it to show which page u want to show in aspx page.
}
if want to use the same SL application for all aspx page and show different xaml page in diff aspx page then u have to pass parameter to manipulate your Application_Startup method. Depending on your param u can show which page u want.
http://silverlight.net/learn/videos/silverlight-videos/using-startup-parameters-with-silverlight/
Please 'Mark as Answer' if it helps you
Sharker Khaleed MahmudSoftware Developer(MCP,MCTS,MCPD[web])
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Min-Hong...
3584 points
412 Posts
11-05-2009 12:48 AM |
Hi,
A xap package contains an entire silverlight Application. You have 3 SL pages i assume they are in a same project. If that is the case , maybe dynamically loading assemblies is really what you want.
http://www.silverlightshow.net/items/Silverlight-Dynamically-Loading-an-Assembly.aspx
http://msdn.microsoft.com/en-us/library/cc903931(VS.95).aspx
Best Regards