Prevent jumping of dynamically sized items in a WPF wrap panel?

You can use RenderTransform instead of LayoutTransform, for example.

Up vote 0 down vote favorite share g+ share fb share tw.

I have a wrap panel full of rectangles, when you mouse over a rectangle it grows in size (using a storyboard animation) to simulate being magnified. That all works fine, the problem is that if you mouse over the last rectangle in a row the magnification causes it to jump to the next line (because it grew too big to fit on the current line). I'm sure there is an elegant solution to prevent this scenario but I just can't figure it out.

Any help would be greatly appreciated. Here's the XAML that runs it all: wpf xaml wrappanel link|improve this question asked Aug 13 '10 at 1:48Jen Doran31.

You can use RenderTransform instead of LayoutTransform, for example: Note that this will not push neighboring items aside. If you want to push the neighboring items aside in a WrapPanel without affecting the wrapping, you'll need to have non-hovered items shrink while the hovered item grows. Computing animations in code to do this is not particularly difficult but is quite a bit more code than a couple of storyboards.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions