Any ideas on how to pass parameters to Silverlight on startup from URL QueryString?
Thank You
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One approach you can take is to expose a method that can be accessed from JavaScript. So in your xaml.cs file you need to add the following to your constructor:
Then add the following event handler:
and:
Then in the ascx or aspx page where your Silverlight control is instantiated add the following JavaScript:
It does also mean that your Silverlight control has to be instantiated via the
<object...tag rather than via<asp:Silverlight...