WPF: Can I use VisualStateManager to change alignment?
- by kennethkryger
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.