visual studio 2010 - Startup params for Silverlight 4 app -
we moving our sl3 app sl4. first step open in vs2010; converted w/o problem.
however, parameters specified start page not passed along.
is, if specify
ourstartpage.aspx?slam=dunk&glass=sun
in app.xaml.cs, application_startup(), e.initparams empty.
how fix this? advice....
(note same startup string worked in vs2008.)
update:
urrk. works, doesn't seem right:
// settings passed in page if (e.initparams.count > 0 ) { applicationstartupcontext.instance.fill(e.initparams); } else { applicationstartupcontext.instance.fill(htmlpage.document.querystring); }
the reason works have params in querystring , not initparams might think.
initparams covers tag in silverlight object in html
actually link better example how :)
Comments
Post a Comment