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.

3 comments:

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

    ReplyDelete

  2. Thank you for sharing such a good information about Bulk SMS. It will help us a lot.

    ReplyDelete
  3. Thanks for sharing, nice post! Post really provice useful information!

    An Thái Sơn chia sẻ trẻ sơ sinh nằm nôi điện có tốt không hay võng điện có tốt không và giải đáp cục điện đưa võng giá bao nhiêu cũng như mua máy đưa võng ở tphcm địa chỉ ở đâu uy tín.

    ReplyDelete

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