WPF, animate over container boundaries

Posted by ImIan on Stack Overflow See other posts from Stack Overflow or by ImIan
Published on 2010-07-01T23:04:27Z Indexed on 2010/12/26 7:53 UTC
Read the original article Hit count: 404

Filed under:
|
|

Hi,

I'm learning WPF and have a specific goal.

Imagine you have a grid (3 rows by 3 columns), and a control, say a simple blue rectangle fills the middle cell. When I click on the cell I want the square to rotate smoothly through 180 degrees.

The specific issue I have at the moment is; as the rectangle rotates, it won't change its dimensions, so it will extend beyond the boundary of the cell. I don't want it to clip, i want it to appear on top, partially obscuring surrounding cells.

The second part of this is, if there is one cell that fills the entire window, and I click on the blue rectangle in that cell, can I make the rectangle rotate and extend beyond the sides of the form?

If that doesn't make sense, please ask. I'm finding it hard to google because I don't know the exact terms I should be using.

Thank you

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf