Ry.
Ry.

Reputation: 173

How do you set the size of a Silverlight OOB application window?

When ever I launch my Silverlight Out-of-Browser application the window size does not match my layout. I've seen ways to provide different size icons using the XML file for Deployment.ApplicationIdentity, but not to specify size of window.

Upvotes: 2

Views: 1074

Answers (2)

Jon Galloway
Jon Galloway

Reputation: 53115

This is managed via the Application Manifest file.

<SilverlightApp>
  <source>XAML or XAP file</source>
  <version>1.0 | 2.0</version>
  <width>[value in browser units or percentage]</width>
  <height>[value in browser units or percentage]</height>
</SilverlightApp>

Upvotes: 1

user122069
user122069

Reputation: 419

right click on the project go to properties click out of browser settings. there you can specify

Upvotes: 2

Related Questions