One of the things that makes Silverlight 2 great is the ability to create a very flexible framework application that others can use and can be embeddable with some dynamic properties. This is the method used in the SL2 Video Player to provide a completely dynamic player that is portable.
How? Using the initParams property of the plugin. There are a few ways you can do this. I’ve just uploaded a video demonstrating three of them:
- Creating App Resources
- Passing into the root visual constructor
- Using URI query string parameters
What? Query string params? Yep, the HTML bridge gives us a nice object model actually to inspect those parameters too. Take a look at the latest video on the Silverlight community site!