<?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: Add GeometryChanged event to the new GeometryEditor in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352903#M12345</link>
    <description>&lt;P&gt;No worries, glad it's working for you now&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237997"&gt;@StefanKallin&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;..&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 09:32:16 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2023-11-23T09:32:16Z</dc:date>
    <item>
      <title>Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352547#M12333</link>
      <description>&lt;P&gt;We have recently begun moving our apps to the new v200.x SDK.&lt;/P&gt;&lt;P&gt;During this process we have noticed that the old SketchEditor had a GeometryChanged event that seems to be missing in the new GeometryEditor.&lt;/P&gt;&lt;P&gt;Parts of our user interactions rely on being able to capture changes to the currently edited geometry to display values (like the radius of a circle) to the user during editing.&lt;/P&gt;&lt;P&gt;Are there any plans to add this event to the GeometryEditor or is there another way to solve this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 14:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352547#M12333</guid>
      <dc:creator>StefanKallin</dc:creator>
      <dc:date>2023-11-22T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352660#M12336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237997"&gt;@StefanKallin&lt;/a&gt;&amp;nbsp;thanks for your post. You might try subscribing to the GeometryEditor &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.Editing.GeometryEditor.PropertyChanged.html" target="_self"&gt;PropertyChanged&lt;/A&gt; event. In the handler, you could conditionally check to see if this event was triggered by a geometry property change. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;mapView.GeometryEditor.PropertyChanged += (s, e) =&amp;gt;
{
    if (e.PropertyName == nameof(mapView.GeometryEditor.Geometry))
    {
        // Geometry has changed
    }
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also modify the `nameof()` call with other GeometryEditor properties to have different logic when other property changes raise this event.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352660#M12336</guid>
      <dc:creator>williambohrmann3</dc:creator>
      <dc:date>2023-11-22T16:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352674#M12338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/655350"&gt;@williambohrmann3&lt;/a&gt;,&amp;nbsp;sadly the PropertyChanged event is not fired when the geometry changes. I should have menitioned in my post that I have already tried this. It was my hope that this event should solve my problem but unfortunately it does not.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352674#M12338</guid>
      <dc:creator>StefanKallin</dc:creator>
      <dc:date>2023-11-22T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352691#M12339</link>
      <description>&lt;P&gt;I haven't been able to reproduce this myself. Would you kindly provide some code?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352691#M12339</guid>
      <dc:creator>williambohrmann3</dc:creator>
      <dc:date>2023-11-22T17:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352698#M12340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237997"&gt;@StefanKallin&lt;/a&gt;&amp;nbsp;- can you describe the scenario where you're not getting the event? If you're using the default VertexTool, and have clicked/tapped to add a vertex - for example - I'd expect it to fire at that point, or any other time the geometry value changes (like when you start the geometry editor with an existing geometry object).&lt;BR /&gt;&lt;BR /&gt;However I wonder if your situation is that you want the event during a drag operation - for example in the middle of dragging/moving a vertex from one location to another using the VertexTool, or maybe during the initial creation of a circle or ellipse with the ShapeTool?&amp;nbsp;I'd expect in both these cases that during the drag operation you dont get geometryChanged event on every mouse move increment of the drag operation, but it should happen when you release the mouse (or release the touch pointer if you're working on a touch device), as that's when the geometry property value is updated. Also same goes for the drag operation of a rotate or scale or move of a whole geometry or a part. If that is the specific case you're dealing with then we'd love to hear about your use case and perhaps you could post in &lt;A href="https://community.esri.com/t5/arcgis-maps-sdks-native-ideas/idb-p/arcgis-runtime-sdks-ideas" target="_blank"&gt;ArcGIS Ideas for Native Maps SDKs&lt;/A&gt; about this requirement - we could consider enhancing the events in a future release.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352698#M12340</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2023-11-22T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352734#M12342</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/655350"&gt;@williambohrmann3&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/142209"&gt;@ShellyGill1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Terribly sorry for reporting something that is in fact not a problem at all.&lt;/P&gt;&lt;P&gt;I used search and replace to refactor the code from using the SketchEditor into using the GeometryEditor.&lt;/P&gt;&lt;P&gt;I completely missed the fact that the old code used an async/await pattern and that the event listener was disconnected at the end of the method. The new code is not async at all so the reason I did not get any events was because I just did not listen to them. My bad!&lt;/P&gt;&lt;P&gt;Thanks for your efforts and replies! I hope that my next post (if any) will be related to an actual issue...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 18:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352734#M12342</guid>
      <dc:creator>StefanKallin</dc:creator>
      <dc:date>2023-11-22T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352759#M12344</link>
      <description>&lt;P&gt;Glad you were able to figure out your issue! &lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&amp;nbsp;In case you missed it, there's a great &lt;A href="https://www.esri.com/arcgis-blog/products/sdk-net/developers/migrating-your-legacy-sketcheditor-code-to-the-new-geometryeditor/" target="_self"&gt;blog post&lt;/A&gt; on moving from SketchEditor -&amp;gt; GeometryEditor.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 19:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352759#M12344</guid>
      <dc:creator>williambohrmann3</dc:creator>
      <dc:date>2023-11-22T19:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add GeometryChanged event to the new GeometryEditor</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352903#M12345</link>
      <description>&lt;P&gt;No worries, glad it's working for you now&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237997"&gt;@StefanKallin&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;..&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 09:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-geometrychanged-event-to-the-new/m-p/1352903#M12345</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2023-11-23T09:32:16Z</dc:date>
    </item>
  </channel>
</rss>

