U2U Blog

for developers and other creative minds

Multiple Silverlight controls in 1 XAP

Basically, when you are creating a website with 2 Silverlight contols, you need to have 2 xap files in your ClientBin folder. It would be better if you could have 1 xap file but you decide which usercontrol you want to see.

A solution could be using InitParams in the object tag in your HTML file:

image

in the app.xaml you write following code:

image

K.

Comments (3) -

Loading