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:
http://msdn.microsoft.com/en-us/library/ms536495(VS.85).aspx
basically you want the following properties set on the hta tag in the html header:
caption=no
contextmenu=no
indderborder=no
border=none
windowstate=normal
scroll=no
showintaskbar=no
and then on load on the body tag execute the following:
window.moveTo(0,0);
window.resizeTo(x,y);
which could be a function of
window.screen.availWidth and or window.screen.availHeight
see black ecma magic saves the day.
Tuesday, 24 November 2009
Silverlight and Dual Screen Monitors...
Posted on 11:16 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment