开发者

ScaleTransform applied to elements in stackpanel causes "white" space

When I add UserControls that have a ScaleTransform applied to them to a StackPanel, I see that there is extra space in between the controls as though the transform was not applied. From what I under开发者_高级运维stand, a transform doesn't actual change the width/height of a control, but rather changes the render width/height. If this is the case, how can I make the controls appear without the extra space?

Here's an example. The first row represents what my controls look like without a transform applied. The second row is what they look like with a ScaleTransform {ScaleX = .75, ScaleY = .75}. I want the elements to bump up to each other like the first row.

ScaleTransform applied to elements in stackpanel causes "white" space


Take a look at the LayoutTransformer class in the Silverlight toolkit.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜