Expression Blend WPF GoToState

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Justin Webster
    New Member
    • Aug 2010
    • 1

    #1

    Expression Blend WPF GoToState

    I've made a textbox control (txtText) and added a custom state ("Error"). I tried using
    Code:
    VisualStateManager.goToState(txtText, "Error", True)
    This works the first time after the project is built. However, when i click inside the textbox, which gives it focus and switches to the "Focus" state, the above code does not work again even though it returns true. What could I be doing incorrectly?
Working...