When using the VisualStateManager in WPF there can be a requirement to transition to a VisualState on control initialization. As far as I can tell there is no way to declare an initial state in Xaml, leaving you with the limited option of transitioning to the required state in your code behind after initialization.

Using code behind is not always desirable, and if you are using a Binding to control your VisualStates then not always possible.

So the question is: how do you set an initial VisualState in WPF without setting it in the code behind?