WP 7.1: VisualStateManager.GotoState doesn't work when called from PropertyChangedCallback of a dependency property

Unanswered WP 7.1: VisualStateManager.GotoState doesn't work when called from PropertyChangedCallback of a dependency property

  • Wednesday, December 05, 2012 9:33 AM
     
     

    I have a PropertyChangedCallback of a dependency property from which inside I try to change a VisualState using VisualStateMangager.GotoState(...). It doesn't work.

    Even if I ty to change Visibilty or IsEnabled property of a UI element it doesn't work.

    Is there something special I have to take into account?

    Any help is very much appreciated.

All Replies

  • Wednesday, December 05, 2012 2:14 PM
    Moderator
     
     
    This is just a wild guess, are you on the UI thread? I would expect an exception if you tried it on another thread, but just a thought.