I am trying to build a library of silverlight controls where the client can choose which control they want to use. The Silverlight Application project will have several user controls. The structure is something like:
Project
-App.xaml
-MainPage.xaml
--Controls (Folder)
------ControlA.xaml
------ContorlB.xaml
How can i reference ControlA or ControlB from my HTML pages? It seems like its only possible to reference xap assemblies so do i need to create a Silverlight application for each usercontrol? Seems like overkill?
If i wanted to use ControlA from the library so i want to be able to do something like:
<object>
<param name="source" value="ClientBin/Silverlight.xap"/>
<param name="class" value="ControlA"/>
</object>
I know the above is not valid SL markup but i think you can understand what I'm trying to do?