<?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: Edit Geometry Editing event in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81031#M334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh sorry I misunderstood. Unfortunately grabbing geometry while moving the vertices, is not supported.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 22:31:02 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-02-02T22:31:02Z</dc:date>
    <item>
      <title>Edit Geometry Editing event</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81028#M331</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;SPAN&gt;I am currently trying to implement a feature using the EditGeometry that consists in snapping the currently edited vertex to any kind of Graphic element on a graphic layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the only feedback I have while editing is through the GeometryEdit event that is only triggered once the vertex has moved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, what I want is to be able to snap the vertex while I am moving it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to work with the Map control MouseMove event, but the only way to get the changes from the geometry editing is by calling the EditGeometry.StopEdit() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I could call this method, get the changes from the editing in order to see if a point has been moved, snap it if necessary and call the EditGeometry.StartEdit() again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It led me to another problem that is if the StopEdit and StartEdit are called within the mouse move event callback (see following code example), the edited geometry get stucked and the only thing I have access to is to start or stop editing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; 
private void PART_Map_MouseMove(object sender, MouseEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editGeometry.StopEdit();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do some stuff here
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editGeometry.StartEdit((Graphic)editingGraphic);
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would really appreciate if someone could help me achieving my goal. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, would it possible for a feature version to get an event while the geometry is being edited?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 20:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81028#M331</guid>
      <dc:creator>FlorianGimat</dc:creator>
      <dc:date>2012-02-01T20:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry Editing event</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81029#M332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are working on including Geometry in the GeometryEditEventArgs, so you wouldn't need to call StopEdit() to get current state of geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These threads are&amp;nbsp; probably related: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/46679-NullReferenceException-when-using-EditGeometry"&gt;http://forums.arcgis.com/threads/46679-NullReferenceException-when-using-EditGeometry&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/46344-Graphic-disappear-on-save-edits"&gt;http://forums.arcgis.com/threads/46344-Graphic-disappear-on-save-edits&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 01:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81029#M332</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-02T01:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry Editing event</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81030#M333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I had already looked at these posts but that didn't help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the GeometryEditEventArgs is passed through the GeometryEdit event. However, this event is only triggered once an operation has been successfully completed (vertex moved, geometry moved). In my case, I need to know when the vertex is actually moving while it's moving in order to determine whether I can snap the vertices or not to another graphic element. This would feel more natural to snap the vertex while moving it than waiting for the move to complete and then snap the vertex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also looked at the snap possibility offered by the EditGeometry by setting the snap key on the map beforehand. I don't really understand how it works though. Maybe I could use that instead, if I could get some info on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 13:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81030#M333</guid>
      <dc:creator>FlorianGimat</dc:creator>
      <dc:date>2012-02-02T13:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry Editing event</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81031#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh sorry I misunderstood. Unfortunately grabbing geometry while moving the vertices, is not supported.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 22:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-geometry-editing-event/m-p/81031#M334</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-02T22:31:02Z</dc:date>
    </item>
  </channel>
</rss>

