I have a DataTemplate. It has two visual states - Expanded, Collapsed. I added 2 GoToStateAction-s. The first one goes to the Expanded state when a data context property becomes True, and the second one goes to the Collapsed state when that same property becomes False.
A Checkbox is part of the template and bound to that property. So when the Checkbox gets checked/unchecked the necessary transition happens.
But none of the actions are applied on startup. The Checkbox is Checked but the Expanded visual state is not applied.
Is it possible using the Visual State Manager to have all items loaded with states applied according to the property values?