Animated Line symbols

4179
4
Jump to solution
01-15-2015 09:44 AM
KrisFoster
New Contributor III

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?

Reply
0 Kudos
1 Solution

Accepted Solutions
MortenNielsen
Esri Frequent Contributor

Animated symbols are currently not supported by the ArcGIS Runtimes.

View solution in original post

Reply
0 Kudos
4 Replies
MortenNielsen
Esri Frequent Contributor

Animated symbols are currently not supported by the ArcGIS Runtimes.

View solution in original post

Reply
0 Kudos
KrisFoster
New Contributor III

Hi Morten,

Thanks for the answer!  Can you tell me if there any plans to support animated symbols in a future release?

Kind Regards,

Kris Foster

Reply
0 Kudos
MortenNielsen
Esri Frequent Contributor

It's definitely on the list, but we don't have any specific plans to announce at this time.

Reply
0 Kudos
KrisFoster
New Contributor III

Understandable, thanks!

Reply
0 Kudos