<Control x:Class="VSMTest.VSMControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    Width="400" Height="300">
    <Control.Template>
        <ControlTemplate>
            <Grid x:Name="Grid">
                <vsm:VisualStateManager.VisualStateGroups>
                    <vsm:VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="A">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="Grid" Storyboard.TargetProperty="Width" From="1" To="100" Duration="0" />
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="B">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="Grid" Storyboard.TargetProperty="Width" From="101" To="200" Duration="0" />
                            </Storyboard>
                        </VisualState>
                    </vsm:VisualStateGroup>
                </vsm:VisualStateManager.VisualStateGroups>
            </Grid>
        </ControlTemplate>
    </Control.Template>
</Control>
