Thursday, August 30, 2012

How to set html host page size from c#

How to set html host page size from c#

I want to customize my html page size when i run the silverlght application.

Can anyone suggests me how to do?

Answers & Comments...

Answer: 1

you want to resize the browser window?  you can do that with javascript, but generally users don't like that.  if you need a window with a specific size, you should create a popup window for which you can specify any size you want without messing with the user's other tabs.

anyway, if you really must, you can create a javascript function that resizes the window (google knows how to do this).  then you can invoke that javascript method from your silverlight code (google knows how to do that too).





No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog