开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜