I've made a textbox control (txtText) and added a custom state ("Error"). I tried using
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?
Code:
VisualStateManager.goToState(txtText, "Error", True)