<?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 Graphic disappear on save edits in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459983#M11860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experiencing a strange effect. I have graphics drawn on my graphics layer. I use EditGeometry to edit my graphics. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I move my vertices during edits, I capture the editgeometry event e.Action. Because I need to get the most updated coordinates, I need to do a StopEdit() in order to commit the changes. But I want the user to be able to continue editing so immediately after StopEdit() I do a StartEdit(e.graphic) again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By doing this, my graphic seem to disappear every time a double click on it. It will reappear if I zoom out and in again (like a map refresh)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out the StopEdit and StartEdit it will not disappear but its not my intended behavior to omit these 2 statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything wrong with what I am doing or is there a map refresh function for me to call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 07:55:26 GMT</pubDate>
    <dc:creator>Hwee_KiangSim</dc:creator>
    <dc:date>2011-12-21T07:55:26Z</dc:date>
    <item>
      <title>Graphic disappear on save edits</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459983#M11860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experiencing a strange effect. I have graphics drawn on my graphics layer. I use EditGeometry to edit my graphics. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I move my vertices during edits, I capture the editgeometry event e.Action. Because I need to get the most updated coordinates, I need to do a StopEdit() in order to commit the changes. But I want the user to be able to continue editing so immediately after StopEdit() I do a StartEdit(e.graphic) again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By doing this, my graphic seem to disappear every time a double click on it. It will reappear if I zoom out and in again (like a map refresh)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out the StopEdit and StartEdit it will not disappear but its not my intended behavior to omit these 2 statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything wrong with what I am doing or is there a map refresh function for me to call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459983#M11860</guid>
      <dc:creator>Hwee_KiangSim</dc:creator>
      <dc:date>2011-12-21T07:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic disappear on save edits</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459984#M11861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you have similar code. You can call layer.Refresh() on EditCompleted to cause the graphics to re-draw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void EditGeometry_GeometryEdit(object sender, EditGeometry.GeometryEditEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; if (e.Action == EditGeometry.Action.VextedMoved)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; editGeometry.StopEdit();
&amp;nbsp;&amp;nbsp;&amp;nbsp; editGeometry.StartEdit(editGraphic);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; else if(e.Action == EditGeometry.Action.EditCompleted)
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.Refresh();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459984#M11861</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic disappear on save edits</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459985#M11862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried and it works beautifully. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 00:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphic-disappear-on-save-edits/m-p/459985#M11862</guid>
      <dc:creator>Hwee_KiangSim</dc:creator>
      <dc:date>2012-01-04T00:01:04Z</dc:date>
    </item>
  </channel>
</rss>

