Looking at an ESRI online example to make a line symboloze like marching ants....I cant seem to reproduce it....I use the below code and the application just spins and never loads...I know things work if I remove the RouteRender adn replace it with <esri:SimpleLineSymbol x:Key="BlackLineSymbol" Color="Black" Width="2" Style="Dash" />I get all the lines to draw....I just cant seem to get the marching ants line to drawAny thoughts? THanks
<esri:SimpleRenderer x:Key="RouteRenderer">
<esri:SimpleRenderer.Symbol>
<esri:LineSymbol>
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<Storyboard RepeatBehavior="Forever">
<DoubleAnimation BeginTime="0:0:0"
Storyboard.TargetName="Element"
Storyboard.TargetProperty="StrokeDashOffset"
To="1000" Duration="0:3:0" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<!--For polyline and polygon template, a Path element with the name "Element" is required-->
<Path x:Name="Element" StrokeDashArray="2,1" StrokeDashOffset="0"
Stroke="Green" StrokeThickness="5" />
</Grid>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer>
<!-- =====Unique Value Renderer for Bus Routes.======================================================================= -->
<esri:SimpleLineSymbol x:Key="Unknown" Color="Gray" Width="3" Style="Dash" />
<esri:SimpleLineSymbol x:Key="BlackLineSymbol" Color="Black" Width="2" Style="Dash" />
<esri:SimpleLineSymbol x:Key="Route783" Color="Blue" Width="4" Style="Dash" />
<esri:UniqueValueRenderer x:Key="BusRouteUniqueRenderer" Attribute="STREETALL" DefaultSymbol="{StaticResource Unknown}">
<esri:UniqueValueRenderer.Infos>
<esri:UniqueValueInfo Value="783" Symbol="{StaticResource Route783}" />
<esri:UniqueValueInfo Value="783_Downtown" Symbol="{StaticResource RouteRenderer}" />
</esri:UniqueValueRenderer.Infos>
</esri:UniqueValueRenderer>
<!-- =========================================================================================== -->