Why are the InitParams I pass into Silverlight always empty?
My Silverlight application needs one parameter, an integer. In my Html, I have written:
<param name="InitParameters" value="UserId=1" />
In code I am reading the parameters in:
foreach (KeyValuePair<string, string> pair in e.InitParams)
{
Resources.开发者_运维百科Add(pair.Key, pair.Value);
}
e.InitParams is always empty. Any ideas?
Because I'm passing in "InitParameters" instead of "InitParams". That's what I get for staring at my code for too long.
精彩评论