<?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 How to update a viewmodel on undo in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-a-viewmodel-on-undo/m-p/1324330#M10279</link>
    <description>&lt;P&gt;I have a dockpane viewmodel with some controls in it that gets its data populated by selecting an element on the map. inside of the dockpane are some controls with operations that affect data. These operations are added to the undo stack and function properly, however, the viewmodel is not updated with undo/redo until the element is reselected from the map.&lt;BR /&gt;Is there an event to subscribe to or some sort of callback to set?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 13:35:05 GMT</pubDate>
    <dc:creator>MBambino_ATS</dc:creator>
    <dc:date>2023-08-31T13:35:05Z</dc:date>
    <item>
      <title>How to update a viewmodel on undo</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-a-viewmodel-on-undo/m-p/1324330#M10279</link>
      <description>&lt;P&gt;I have a dockpane viewmodel with some controls in it that gets its data populated by selecting an element on the map. inside of the dockpane are some controls with operations that affect data. These operations are added to the undo stack and function properly, however, the viewmodel is not updated with undo/redo until the element is reselected from the map.&lt;BR /&gt;Is there an event to subscribe to or some sort of callback to set?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 13:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-a-viewmodel-on-undo/m-p/1324330#M10279</guid>
      <dc:creator>MBambino_ATS</dc:creator>
      <dc:date>2023-08-31T13:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a viewmodel on undo</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-a-viewmodel-on-undo/m-p/1324381#M10280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to catch&amp;nbsp;&lt;SPAN&gt;EditCompletedEvent event in your viewmodel.&amp;nbsp;EditCompletedEventArgs has property&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic16009.html" target="_self"&gt;CompletedType.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It describes the type of an EditCompletedEvent and could be one enum&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic16008.html" target="_self"&gt;EditCompletedType&lt;/A&gt;&amp;nbsp;values.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private Task OnEditCompleted(EditCompletedEventArgs args)
        {
            switch (args.CompletedType)
            {
            case EditCompletedType.Save:
                break;

            case EditCompletedType.Discard:
                break;

            case EditCompletedType.Operation:
                break;

            case EditCompletedType.Undo:
            case EditCompletedType.Redo:
                    // do your stuf
                break;

            case EditCompletedType.Reconcile:
                break;

            case EditCompletedType.Post:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 15:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-a-viewmodel-on-undo/m-p/1324381#M10280</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-08-31T15:11:12Z</dc:date>
    </item>
  </channel>
</rss>

