I was asked recently to about testing the version of silverlight on a project that only would support Silverlight 1.0. silverlight actually supports a method for doing just that and the complete documentation is online. That being the case however here is how todo it:
if( Silverlight.isInstalled("1.1") )
{
// do something.
}
else
{
// or not
}
or you could pass in '1.0' and the method returns true or false. Personally if this is an issue and you really need todo something other then run the silverlight install badge I would drop this into the initialization function your using.
This blog has moved…
14 years ago
No comments:
Post a Comment