<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cartographic Line Symbols or using StrokeEndLineCap in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491085#M12595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This basically would just seem the it exposes some of the Attributes on the &amp;lt;Path/&amp;gt; element. If I set them directly in the PAth element of a custom Symbol still no affect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Joe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;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"&amp;gt;

&amp;lt;esri:LineSymbol.ControlTemplate&amp;gt;
&amp;lt;ControlTemplate&amp;gt;
&amp;lt;Canvas&amp;gt;
&amp;lt;Path Name="Element" Stroke="Blue" StrokeThickness="3" StrokeDashArray="2 1" StrokeDashCap="Round"StrokeEndLineCap="Triangle" /&amp;gt;
&amp;lt;/Canvas&amp;gt;
&amp;lt;/ControlTemplate&amp;gt;
&amp;lt;/esri:LineSymbol.ControlTemplate&amp;gt;
&amp;lt;/esri:LineSymbol&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 04:19:14 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2011-01-20T04:19:14Z</dc:date>
    <item>
      <title>Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491085#M12595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This basically would just seem the it exposes some of the Attributes on the &amp;lt;Path/&amp;gt; element. If I set them directly in the PAth element of a custom Symbol still no affect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Joe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;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"&amp;gt;

&amp;lt;esri:LineSymbol.ControlTemplate&amp;gt;
&amp;lt;ControlTemplate&amp;gt;
&amp;lt;Canvas&amp;gt;
&amp;lt;Path Name="Element" Stroke="Blue" StrokeThickness="3" StrokeDashArray="2 1" StrokeDashCap="Round"StrokeEndLineCap="Triangle" /&amp;gt;
&amp;lt;/Canvas&amp;gt;
&amp;lt;/ControlTemplate&amp;gt;
&amp;lt;/esri:LineSymbol.ControlTemplate&amp;gt;
&amp;lt;/esri:LineSymbol&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 04:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491085#M12595</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2011-01-20T04:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491086#M12596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should not have a Canvas around your Path element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the line caps available to Silverlight's Path object is awailable for line symbols.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 19:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491086#M12596</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-20T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491087#M12597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried it both ways, that just happens to be where I was at when I copied it.&amp;nbsp; The best I can see with this setting is that if you make a really, really thick line you can kind of tell there is a triangle at the end when you zoom in.&amp;nbsp; But on a normal thckness line you cannot see any difference when you change this setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I really want to do is create a line that has an arrow head end point, not just a small triangular end point.&amp;nbsp; Like I said in my intial post, I did this in Flex, and if I were to just use the core .net shapes I can do it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been messing around with the various aspects of the ControlTemplate, it looks to me like somehow there might be a way to use the PathGeometry to get the behavior I want.&amp;nbsp; I have yet to figure out how you can set a path the starts at the end point of the line (I am no XAML guru).&amp;nbsp; If you have any insight into how one might go about this I would greatly appreciate it.&amp;nbsp; It seems a little mysterious how the Path "Element" is being grabbed onto and used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Joe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 01:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491087#M12597</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2011-01-21T01:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491088#M12598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These are the only linecaps Silverlight gives you: &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb979973(v=vs.95).aspx"&gt;http://msdn.microsoft.com/en-us/library/bb979973(v=vs.95).aspx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think there's any way to extend these.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 16:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491088#M12598</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-21T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491089#M12599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you said this seems to be the only thing available using a line cap.&amp;nbsp; I am not sure I undersatnd why ESRI seems to have gone out of the way to not expose any thing that could allow users to do more than make lines have cool visual affects.&amp;nbsp; It seems to me that it would make sense to have Symbol be a UI Component so developers could have greater control over the Control Template.&amp;nbsp; Or some way to have access to the actuall UI Elmenent that is being drawn on, like Flex does.&amp;nbsp; I think what we are trying to accomplish should be possible in a straight forward way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any thoughs on making a polyline that is truly an arrow it would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jan 2011 09:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491089#M12599</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2011-01-22T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491090#M12600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am going to work on a sample allowing to add arrows (or other patterns) to lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/InteractiveDrawing/InteractiveDrawing.html"&gt;preview&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that this sample is also able to transform lines to smooth curves:p&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will post the code as soon as I will have cleaned this sample up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491090#M12600</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-01-25T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491091#M12601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is exactly what we have been trying to do.&amp;nbsp; So the sooner you can have the code posted the better.&amp;nbsp; I can clean it up&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 02:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491091#M12601</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2011-01-26T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491092#M12602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; This is exactly what we have been trying to do. So the sooner you can have the code posted the better. I can clean it up&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Send me an email (&lt;/SPAN&gt;&lt;A href="mailto:&amp;quot;dbroux@esri.com&amp;quot;" rel="nofollow"&gt;dbroux@esri.com&lt;/A&gt;&lt;SPAN&gt;), I will provide you the code 'as it is'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 12:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491092#M12602</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-01-26T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491093#M12603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am not sure I undersatnd why ESRI seems to have gone out of the way to not expose any thing that could allow users to do more than make lines have cool visual affects. It seems to me that it would make sense to have Symbol be a UI Component so developers could have greater control over the Control Template. Or some way to have access to the actuall UI Elmenent that is being drawn on, like Flex does.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is done for performance reasons. Creating UI Elements is expensive. This is not really different from what you will see in for instance a ListBox. The ListBox applies a template to each row. The ListBox will never render more than the rows you can see in the view. When you scroll, the row that goes out of view is moved to the new row that comes into view, and it's datacontext is simply updated (this is what is called UI Virtualization). This makes it possible to render millions of rows without having to create millions of UI Elements, and thus the listbox scrolls smoothly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Map uses a similar approach, and reuses UI Elements. In other words: There's no guarantee that the UIElement that belonged to one graphic, belongs to the same graphic a moment later. There's also other reasons we keep these not exposed - for instance some are due to limitations in Silverlight and WPF where we need to do some work-arounds to get features rendering correctly at all times. Direct access to the UI Element could seriously mess up that step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said all that, even if you did have access to the UI Element, you would still be bound by what Silverlight gives you. I can't really see how access to that would allow you to override how a Path is rendered. Access to the template should give you equal power to access the UI Element instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't underestimate the power of templates. Dominique just demonstrated how much you can actually accomplish with them &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 17:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491093#M12603</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-26T17:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491094#M12604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help, this was exactly the solution I needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 09:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491094#M12604</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2011-01-31T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cartographic Line Symbols or using StrokeEndLineCap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491095#M12605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted the code of the &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/InteractiveDrawing/InteractiveDrawing.html"&gt;sample &lt;/A&gt;&lt;SPAN&gt;here : &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=1e432da7e74f4402bd43a5863167022d"&gt;http://www.arcgis.com/home/item.html?id=1e432da7e74f4402bd43a5863167022d&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 08:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cartographic-line-symbols-or-using/m-p/491095#M12605</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-01T08:51:51Z</dc:date>
    </item>
  </channel>
</rss>

