Providing startup parameters for Silverlight
| Comments- | Posted in
- silverlight
- embed
- initParams
- silverlightjs
- sl2videoplayer
- initparameters
Thanks for visiting! Just a fair warning this post is fairly 'old' in tech terms and may contain outdated information and/or broken links or pictures. Please verify info and feel free to contact me if questions!
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!
Please enjoy some of these other recent posts...
Comments