WPF: Can I use VisualStateManager to change alignment?

Posted by kennethkryger on Stack Overflow See other posts from Stack Overflow or by kennethkryger
Published on 2010-05-25T07:39:44Z Indexed on 2010/05/25 7:41 UTC
Read the original article Hit count: 274

Hi,

I've got this "object-stack" - Window --- Grid (VerticalAlignment = Stretch) ----- Border (VerticalAlignment = Stretch OR Top)

The Border a primitive UserControl right now to keep things simple for me.

I'd like to be able to use the VisualStateManager to toggle the VerticalAlignment-property of the Border, so that the "Normal-state" equals VerticalAlignment.Top and "Expanded-state" equals VerticalAlignment.Stretch.

Is this possible?

Also, I'd like to use an easing function, when swithing between the two states.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about alignment