I have six different objects with their own Visual State Managers. The Focused state of each object is the same. I want to define a single Focused State Storyboard resource and reference it in each of the 6 Focus Visual states. Can this be done? Here's my code (all in the same UserControl.Resources):
<Storyboard x:Key="FocusedState">
...
</Storyboard>
In each of my 6 objects I have the following:
<VisualStateGroup x:Name="FocusStates">
<VisualState x:Name="Focused" Storyboard="{StaticResource FocusedState}"/>
...
When I run the project I get the following error:
Message: Attribute {StaticResource FocusedState} value is out of range.