AnsweredAssumed Answered

Animated Line symbols

Question asked by srxicey on Jan 15, 2015
Latest reply on Jan 16, 2015 by srxicey

Previously I have been able to define control templates for line symbols in the xaml to animate lines.  The below for example provided a moving dashed line to indicate a direction of the line with an animated graphic rather than a simple arrow marker symbol.

 

<Grid.Resources>
            <esriSymbols:LineSymbol x:Name="TestLineSymbol">
                <esriSymbols: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:0:0"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Path x:Name="Element" Stroke="{Binding Symbol.Color}" StrokeThickness="{Binding Symbol.Width}" StrokeEndLineCap="Round" StrokeStartLineCap="Round"/>
                        </Grid>
                    </ControlTemplate>
                </esriSymbols:LineSymbol.ControlTemplate>
            </esriSymbols:LineSymbol>
        </Grid.Resources>

Does anyone have any suggestions on how to implement similar functionality now?

Outcomes