Click here to Skip to main content
13,046,773 members (42,349 online)
Rate this:
Please Sign up or sign in to vote.
Hi everyone,
i am creating an web site application in visual studio 2010. i have added one silverlight application in my project. it has one user control mainpage.xaml. Every silverlight application when added in project creates on testpage.xap which can be used for adding that control in our web page. when i add another user control in the same silverlight application, it doesnt create second testpage, so how can i use that control in web page? is it true that we can create only one silverlight control in one silverlight application.??

There exists only single user control and single test page for one silverlight application. So for adding another silverlight user control, i have to create another application and another test page. but is there another way to do it???
Posted 17-Nov-11 19:41pm
Updated 17-Nov-11 22:34pm
Member 8227420 21-Dec-11 7:42am

In my silverlight application by default one user control will test with one test page,But i have added another user control ,How can i test this user control,Is there any process to test another control.


1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Silverlight is implemented as a browser plugin and is added to a web page as described here: Integrating Silverlight with a Web Page[^]

If you have more than one Silverlight application then you can integrate them with your web pages the same way. The .xap file name and/or URI will be different but that's it.

Your text doesn't make sense - adding a user control to a Silverlight application has nothing to do with the web page the Silverlight application is hosted on so you can't expect another test page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 18 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100