<?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: Change GraphicsLayer Z Index in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219899#M5516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah..indeed its a real pain of not having those &lt;STRONG style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SetZIndex and GetZIndex&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; methods for the Graphics Layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 10:32:18 GMT</pubDate>
    <dc:creator>SurajPatil</dc:creator>
    <dc:date>2016-08-10T10:32:18Z</dc:date>
    <item>
      <title>Change GraphicsLayer Z Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219895#M5512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know about Graphic.SetZIndex and Graphic.GetZIndex. These methods allow to change the Z index of Graphics in a layer. However, these methods don't exist for the Layer itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How should I control the Z index for all my different GraphicsLayers? It seems to be related to the order in which my layers are added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:05:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219895#M5512</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2011-03-18T20:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change GraphicsLayer Z Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219896#M5513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any idea anybody?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is really annoying. I have two GraphicLayers: GL1 and GL2. The graphics from GL1 are drawn over graphics from GL2 because GL1 is added first to Map Control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I control that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 17:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219896#M5513</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2011-03-23T17:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change GraphicsLayer Z Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219897#M5514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a way to do it. It is not really clean, but at least it works...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public void MoveUpLayer(Layer layer)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; int index = Map.Layers.IndexOf(layer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index &amp;lt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;

&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Layers.RemoveAt(index);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Layers.Insert(index - 1, layer);
}

public void MoveDownLayer(Layer layer)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; int index = Map.Layers.IndexOf(layer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index &amp;lt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;

&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Layers.RemoveAt(index);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Layers.Insert(index + 1, layer);
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if ArcGIS developers are reading these posts, but they should consider adding SetZIndex and GetZIndex to the Layer class. It would be a lot cleaner...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219897#M5514</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2021-12-11T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change GraphicsLayer Z Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219898#M5515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is correct. The only way you can change the order of your layers is to add/remove them from your Map.Layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic.SetZIndex() only applies to features belonging to the same layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 15:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219898#M5515</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-24T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change GraphicsLayer Z Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219899#M5516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah..indeed its a real pain of not having those &lt;STRONG style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SetZIndex and GetZIndex&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; methods for the Graphics Layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 10:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-graphicslayer-z-index/m-p/219899#M5516</guid>
      <dc:creator>SurajPatil</dc:creator>
      <dc:date>2016-08-10T10:32:18Z</dc:date>
    </item>
  </channel>
</rss>

