I am silverlight 3.0 with .net framework 4.0. I want to create a wen based application using silverlight am using multiple xaml files, to call xaml files i need to make xap file how to convert xaml to xap in clientBin, abd how to use mul开发者_如何学JAVAtiple xaml files (Like company.xaml, NewEvent.xaml, mainPage.xaml etc.) in aspx page.
- To "convert" XAML to XAP, make sure you are working in Visual Studio 2010, and click Build. This will generate a XAP.
- To have multiple XAP, create multiple Silverlight projects
- To use XAP in website, create new (or use existing) ASP.NET Web project; add Silverlight project references in Project Properties page > Silverlight; then the compiled XAP will appear in ClientBin folder of web project
- To use multiple XAP in same ASP.NET page (ASPX), just copy the Silverlight HTML object tags few times and change the paths. You can display multiple XAPs in same ASPX.
精彩评论