<?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 Re: MarkerSymbol dynamic stroke color in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115232#M2870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are righ SimpleMarkrSymbol is not meant for subclassing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to subclass MarkerSymbol and define the Dependency Properties you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One easier, but not supported, way to do it is to use the internal ESRI.ArcGIS.Client.FeatureService.Symbols.SimpleMarkerSymbol which has OutlineColor and OutLineThickness properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 07:25:18 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2014-01-23T07:25:18Z</dc:date>
    <item>
      <title>MarkerSymbol dynamic stroke color</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115231#M2869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working in a project where we have to define the stroke color of a SimpleMarkerSymbol. Right now I am using a ControlTemplate to define it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;ControlTemplate&amp;gt; 
&amp;lt;Ellipse Fill="{Binding Symbol.Color}" Stroke="Black" /&amp;gt;
&amp;lt;/ControlTemplate&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked fine until now. I have an enhancement request that asks to make the Stroke color dynamic like the Fill color is. For the Fill color to be dynamic what I did was to Bind it to the "Color" property of the "SimpleMarkerSymbol." That works fine except that I don't see any Stroke property in the SimpleMarkerSymbol class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I add that? Do I need to write my own MarkerSymbol class? I tried extending SimpleMarkerSymbol but that is a "sealed" class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 18:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115231#M2869</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2014-01-22T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: MarkerSymbol dynamic stroke color</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115232#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are righ SimpleMarkrSymbol is not meant for subclassing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to subclass MarkerSymbol and define the Dependency Properties you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One easier, but not supported, way to do it is to use the internal ESRI.ArcGIS.Client.FeatureService.Symbols.SimpleMarkerSymbol which has OutlineColor and OutLineThickness properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 07:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115232#M2870</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-01-23T07:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: MarkerSymbol dynamic stroke color</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115233#M2871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. Yeah, I figured I would have to extend MarkerSymbol. I see in the documentation that SimpleMarkerSymbol extends MarkerSymbol AND IJsonSerializable. What is this IJsonSerializable interface for? Do you know if I need to extend that as well in my project for it to work properly? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you mentioned this other SimpleMarkerSymbol class in ESRI.ArcGIS.Client.FeatureService.Symbols, what is the difference between that class and the one I am using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115233#M2871</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2014-01-23T13:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: MarkerSymbol dynamic stroke color</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115234#M2872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is this IJsonSerializable interface for? Do you know if I need to extend that as well in my project for it to work properly? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The IJsonSerializable interface is mainly for being able to print the graphics at server side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Without implementing this interface, the graphics using your symbol will be printed with a default symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, you mentioned this other SimpleMarkerSymbol class in ESRI.ArcGIS.Client.FeatureService.Symbols, what is the difference between that class and the one I am using?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.FeatureService.Symbols is used internally to create symbols for feature services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115234#M2872</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-01-23T13:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: MarkerSymbol dynamic stroke color</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115235#M2873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dominique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again. Is there any example somewhere about the ToJason method and how to write it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Luis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 15:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/markersymbol-dynamic-stroke-color/m-p/115235#M2873</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2014-01-23T15:13:46Z</dc:date>
    </item>
  </channel>
</rss>

