So I'm working on this dual screen kiosk thing and want to use Silverlight as for some reason I can't use WPF / .net4 etc. long story and not the point. What do I do now?
Well along time ago in a galaxy mostly still down the street I used do alot of 'dhtml' or ajax kinds of things or whatever we are calling it now days and there was this little thing called an hta you could do to get around all that silly security stuff in the browser that keeps you from nuking the hard drive, and file system access etc.
So the trick I found is to have the hta host the Silverlight app and have it resize its self to take up all the monitors. with a third monitor hidden in the kiosk... poof, Silverlight dual screen full screen black magic.
for those interested in hta's:
basically you want the following properties set on the hta tag in the html header:
and then on load on the body tag execute the following:
which could be a function of
window.screen.availWidth and or window.screen.availHeight
see black ecma magic saves the day.
This blog has moved…
6 years ago