Sunday, July 5, 2009

Passing startup parameters in a Silverlight 2 application

ASP.Net Silverlight control allows passing startup parameters through InitParamaters property. You can specify the parameters as commas separated key-value pair string as follows in aspx page

<asp:Silverlight ID="Xaml1" runat="server" InitParameters="key1=value1,key2=value2" Source="~/ClientBin/InitParamSilverlight.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />

OR

Declare the initParams param on the Silverlight plug-in and pass in a comma-delimited set of key-value pair tokens as follows in html


See full detail: http://www.c-sharpcorner.com/UploadFile/nipuntomar/InitParamSilverlight03222009065553AM/InitParamSilverlight.aspx

No comments: