开发者

Full size Silverlight application dimensions

开发者 https://www.devze.com 2023-01-31 07:31 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消