Jesse
Jesse

Reputation: 599

Full size Silverlight application dimensions

How can I set the dimensions of my root layout in the XAML to 100% width and height of the <object> tag that houses the Silverlight App.

I have tried specifying 100%, but the width and height properties only take unit literals (exact pixels). Is there a way I can have the Silverlight app take up all the available space in the <object> tag?

Upvotes: 2

Views: 183

Answers (1)

Muad&#39;Dib
Muad&#39;Dib

Reputation: 29216

Right now (this could change in the version next of Silverlight), pretty much the only way to do this is figure out the dimensions in JavaScript on the page, then pass those to the Silverlight object.

One other option would be to use the Silverlight/JavaScript inter-op API

Upvotes: 1

Related Questions