<?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: Editing Graphics Layer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135647#M3397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In that case, you can supply the graphic maybe from MouseLeftButtonDown event, and then EditVertices.Execute(e.Graphic).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe we pulled support for KmlLayer at this time for v2.0. But just the same, you can look at this thread for saving graphics layer:&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/1861-Saving-a-graphics-layer"&gt;http://forums.arcgis.com/threads/1861-Saving-a-graphics-layer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2010 13:14:04 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-08-11T13:14:04Z</dc:date>
    <item>
      <title>Editing Graphics Layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135644#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I use the Silverlight Client.Editor and begin an Edit using &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EditVertices.Execute(graphic.Geometry)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get the commit and retrieve edits made programatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try listening to the PointCollection of the (Polygon or Polyline) graphic, but it never changes as far as I can tell.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems simple, like I'm missing something fundamental -- any help here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 03:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135644#M3394</guid>
      <dc:creator>MatthewReines</dc:creator>
      <dc:date>2010-08-11T03:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Graphics Layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135645#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this sample for guide: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also listen to the Editor's EditCompleted event and do the following to save edits:&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; void editor_EditCompleted(object sender, Editor.EditEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var edit in e.Edits)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.Action== Editor.EditAction.EditVertices &amp;amp;&amp;amp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.Layer is FeatureLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (edit.Layer as FeatureLayer).SaveEdits();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit also includes edit.Graphic so you will know which graphic was modified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, this is incorrect:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;EditVertices.Execute(graphic.Geometry)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EditVertices command can accept graphic as parameter but not its geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135645#M3395</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T07:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Graphics Layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135646#M3396</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;BR /&gt;&lt;SPAN&gt;Thank you for the quick response. Unfortunately maybe my question was a little off. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I misstated how EditVertices was instigated, its done using the graphic, not the graphic.Geometry. Thanks for ointing that out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in both your response and the sample, which I was familiar with, the code refers to getting the edits from a feature layer, which of course has the SaveEdits method. I'm trying to do essentially the same thing with a graphics layer that is NOT a feature layer. The layer type I'm actually wanting to edit is based on the KmlLayer examples found elsewhere in these forums and is not based on FeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe that is the problem, I should be using a feature layer even though I do not get them directly&amp;nbsp; from ArcServer? Or how to get the .SaveEdits functionality from a GraphicsLayer without the cast to FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 11:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135646#M3396</guid>
      <dc:creator>MatthewReines</dc:creator>
      <dc:date>2010-08-11T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Graphics Layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135647#M3397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In that case, you can supply the graphic maybe from MouseLeftButtonDown event, and then EditVertices.Execute(e.Graphic).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe we pulled support for KmlLayer at this time for v2.0. But just the same, you can look at this thread for saving graphics layer:&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/1861-Saving-a-graphics-layer"&gt;http://forums.arcgis.com/threads/1861-Saving-a-graphics-layer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 13:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/editing-graphics-layer/m-p/135647#M3397</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-11T13:14:04Z</dc:date>
    </item>
  </channel>
</rss>

