<?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: Graphics front-back in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417086#M10786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can probably check collision by using Extent.Intersects() and setting Graphic.SetZIndex(index) or stack order of the graphic in the collection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 15:51:04 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-05-01T15:51:04Z</dc:date>
    <item>
      <title>Graphics front-back</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417085#M10785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a graphics layer where I add several graphics. Some times the graphics are very close and there are some I would like to bring to the front so the client can have a better view of them. Is there any way to do that programmatically? I did not see anything in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 18:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417085#M10785</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2012-04-30T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics front-back</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417086#M10786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can probably check collision by using Extent.Intersects() and setting Graphic.SetZIndex(index) or stack order of the graphic in the collection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417086#M10786</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-05-01T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics front-back</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417087#M10787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply. I tried the z order which I thought was a the fastest procedure and did not get good results. Not sure why. I got the count of graphics that I had at the specific moment in the&amp;nbsp; layer so it would be the highest number possible and set the z index with that and still they were overlapping. I also tried using this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Graphics.Move(Graphics.IndexOf(myGraphic), 0);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That does the trick when I do one by one; but if I do several at the same time the graphics disappear from the screen for an instance. That tells me that likely the "move" algorithm is more time consuming (and I think that make sense). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, any advice with the z-index? Is that the right way to use it? I'd like to use that approach if possible so the graphics don't flicker like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417087#M10787</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2021-12-11T18:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics front-back</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417088#M10788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind. I think I got it. What I did was to set the Z-index to 0 in all the graphics I have when I instantiate them to make sure they are all at the lowest level. When I need to show them on top of the others I set the z-index to a high number and they show the way I want. I can re-set them to zero if I want them back at the level they were first. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 19:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-front-back/m-p/417088#M10788</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2012-07-13T19:23:44Z</dc:date>
    </item>
  </channel>
</rss>

