views:

152

answers:

1

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 understand, 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.

alt text

A: 

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

KeithMahoney