问题
Is it possible for a Silverlight 3 application which is running in out-of-browser mode to set the size of the container window? I've got an app with collapsible panel sections and I want the window to automatically size to the current size of the LayoutRoot control.
回答1:
You can set the window size in the project settings:
- Open Project settings
- Open
Out of browser settings
inSilverlight
Tab - Set the window size, window title or window position
回答2:
I Agree with pivotnig This Is more Simplified version
1 . Click On Sliverlight Project
2 . Select Properties option
3 . Select First tab option Like Silverlight
4 . Click On Out-Of-Browser setting Option
5 . Set the window size, window title or window position etc......
来源:https://stackoverflow.com/questions/1187431/silverlight-3-out-of-browser-set-host-window-size