Search This Blog

Wednesday, February 29, 2012

Silverlight animating PopupMenu–‘IsOpen’ property, translate transform and opacity

This sample shows how to animate System.Windows.Controls.Primitives.Popup ‘IsOpen’ property, its position and opacity.

To change the visual state from code behind use:

VisualStateManager.GoToState(this, "HiddenState", true);

VisualStateManager.GoToState(this, "VisibleState", true);

source code.

1 comment:

  1. This is excellent, thank you. The use of the ObjectAnimationUsingKeyFrames to set the IsOpen state is brilliant.


If you like this post, please leave a comment :)