Problem: create several different xaml in a project, and then select to display different xaml in aspx to see different page effects.
Solution:
1. assume that you have a Web site and want to use two Silverlight controls, you can create two Silverlight projects and add these three projects to a solution. Note that the xap file names output by two Silverlight files must be different, so that they can be referenced separately in the ASP. NET project.
<Object data = "data: application/x-silverlight," type = "application/x-silverlight-2-b1" width = "100%" height = "100%">
<Param name = "source" value = "my1.xap"/>
</Object>
2. In a Silverlight project, create multiple different XAML (UserControl) and specify which xaml to start in Application_Startup () of App. XAML. cs.
// This. RootVisual = new Page ();
This. RootVisual = new SilverlightControl1 ();
<