<?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 Symbol by code in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/symbol-by-code/m-p/329954#M8464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to create a marker symbol by code on Graphics layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;today i use the xaml code, and it works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;....&amp;lt;Path Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Fill="#FF333333"....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; but i have so many differrent kind of symbols, depending sometime on variable, that i am looking for the symbol creation via code with a path data or equivalent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help is welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 11:27:22 GMT</pubDate>
    <dc:creator>EricROHEL</dc:creator>
    <dc:date>2012-08-08T11:27:22Z</dc:date>
    <item>
      <title>Symbol by code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/symbol-by-code/m-p/329954#M8464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to create a marker symbol by code on Graphics layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;today i use the xaml code, and it works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;....&amp;lt;Path Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Fill="#FF333333"....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; but i have so many differrent kind of symbols, depending sometime on variable, that i am looking for the symbol creation via code with a path data or equivalent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help is welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 11:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/symbol-by-code/m-p/329954#M8464</guid>
      <dc:creator>EricROHEL</dc:creator>
      <dc:date>2012-08-08T11:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol by code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/symbol-by-code/m-p/329955#M8465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a custom symbol that inherits from MarkerSymbol and add an enum property for Style. You can define your symbol templates as resource and choose the appropriate one based on Style. If you want to build the ControlTemplate itself in code, I think you can follow this approach: &lt;/SPAN&gt;&lt;A href="http://blogs.silverlight.net/blogs/msnow/archive/2008/10/09/silverlight-tip-of-the-day-60-how-to-load-a-control-straight-from-xaml.aspx"&gt;http://blogs.silverlight.net/blogs/msnow/archive/2008/10/09/silverlight-tip-of-the-day-60-how-to-load-a-control-straight-from-xaml.aspx&lt;/A&gt;&lt;SPAN&gt;. So create a default template string and use string.Format() to replace Path, then use XamlReader.Load to set ControlTemplate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/symbol-by-code/m-p/329955#M8465</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-08-08T16:54:43Z</dc:date>
    </item>
  </channel>
</rss>

