开发者

Silverlight: How to work with layouts relative to screen size?

开发者 https://www.devze.com 2023-01-29 21:18 出处:网络
I\'m working with Silverlight 4. I have a control that is wide enough that it goes off the screen. If I expand the window enough, I can see it, but I\'d rather the control shrink so that it\'s v开发者

I'm working with Silverlight 4. I have a control that is wide enough that it goes off the screen. If I expand the window enough, I can see it, but I'd rather the control shrink so that it's v开发者_运维问答isible in a smaller window. How can I specify this?


Try putting the control into a ViewBox.


Also, it might be helpful to look at the Silverlight Toolkit Samples. The LayoutTransformer example does some resizing like you describe.

http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html#/Navigation/Page2.xaml

0

精彩评论

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

关注公众号