Select to view content in your preferred language

Cartographic Line Symbols or using StrokeEndLineCap

2470
10
01-19-2011 08:19 PM
JoeHershman
MVP Regular Contributor
I have a simple need. Create a line with a Triangle end point. Was able to do in Flex by inheriting from LineSymbol and overriding the Draw method. Cannot use this approach because the Silverlight LineSymbol does not expose the same methods in this way.

Looked at CartographicLineSymbol and it has an EndLineCap which would seem to offer this behavior based on the Enum values. Set to triangle and it does nothing, in fact I do not see any affect of setting any of the properties on this object.

This basically would just seem the it exposes some of the Attributes on the <Path/> element. If I set them directly in the PAth element of a custom Symbol still no affect.

Any Ideas???

Thanks
-Joe

<esri:LineSymbol x:Class="Kpoint.Jbl.Viewer.Modules.CoaGraphics.Symbols.FollowAndSupportSymbol"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">

<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Canvas>
<Path Name="Element" Stroke="Blue" StrokeThickness="3" StrokeDashArray="2 1" StrokeDashCap="Round"StrokeEndLineCap="Triangle" />
</Canvas>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
Thanks,
-Joe
0 Kudos
10 Replies
DominiqueBroux
Esri Frequent Contributor
0 Kudos