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.开发者_StackOverflow
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?
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
精彩评论