I have built a custom control that extends content control. Within this I have a parts and states model that is working fine.
I then use this as the root of my xaml(placing the code in the templates folder in Blend)
Everything works fine, I can open a new 'DaveControl' and get the functionality that I want.
However, If I then add make some visual states here, such as alertOnScreen and try to use the visualstatemanager it doesn't work.
infact there are no states listed.
The Behaviour in SL3 GotoVisualState works fine though!
How can I get the visual state to work in code?