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
精彩评论