Select to view content in your preferred language

How to add MarkerSymbol or picture to the LineSymbol

767
2
09-13-2011 01:28 AM
WOOLetsMeTest
New Contributor
How can I custom my LineSymbol like this

<esri:LineSymbol x:Key="CustomAnimatedRedLineSymbol">
    <esri:LineSymbol.ControlTemplate>
      <ControlTemplate xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
        <Grid>
          <vsm:VisualStateManager.VisualStateGroups>
            <vsm:VisualStateGroup x:Name="CommonStates">
              <vsm: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>
              </vsm:VisualState>
            </vsm:VisualStateGroup>
          </vsm:VisualStateManager.VisualStateGroups>
          <Path x:Name="Element" StrokeDashArray="2,1" StrokeDashOffset="0" Stroke="Red" StrokeThickness="5" />
        </Grid>
      </ControlTemplate>
    </esri:LineSymbol.ControlTemplate>
  </esri:LineSymbol>


by adding MarkerSymbol or a picture .





Thanks in advance.
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
0 Kudos
WOOLetsMeTest
New Contributor
Thank you very much sir.:D
0 Kudos