<?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: ActivePaneChangedEvent unexpected behaviour in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1042221#M6404</link>
    <description>&lt;P&gt;Hmm, sounds like a bug to me. When an ActivePaneInitializedEvent fires, I would expect&amp;nbsp; FrameworkApplication.Panes.ActivePane.Initialized to be true, but it's not for me either with 2.7.1&lt;/P&gt;&lt;P&gt;As a workaround, I &lt;EM&gt;was&lt;/EM&gt; going to suggest subscribing to INotifyPropertyChanged when ActivePaneInitialized fires, and then wait for the PropertyChangedEvent to fire for the Initialized property - &lt;EM&gt;but that never fires either&lt;/EM&gt;. Maybe another bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 22:37:21 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2021-03-30T22:37:21Z</dc:date>
    <item>
      <title>ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1041750#M6398</link>
      <description>&lt;P&gt;I am writing code that opens up the attribute table and then proceeds to open the GoTo command. The attribute table needs to be fully loaded before the GoTo command will execute. I subscribed to the ActivePaneChangedEvent to ensure initialisation of the table. I was surprised however to discover that the ActivePaneChangedEvent happens before the pane is fully initialised. In the code below pane.Initialized returns false inside the ActivePaneChangedEvent. Is this expected behaviour?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ActivePaneInitializedEvent.Subscribe(OnActivePaneInitialized);
                var openTableBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_table_openTablePaneButton") as ICommand;
                if (openTableBtnCmd != null)
                {
                    // Let ArcGIS Pro do the work for us
                    if (openTableBtnCmd.CanExecute(null))
                    {
                        openTableBtnCmd.Execute(null);
                    }
                }
private void OnActivePaneInitialized(ActivePaneInitializedEventArgs obj)
        {
            var pane = FrameworkApplication.Panes.ActivePane;
            if (pane is ITablePane)
            {
                if (pane.Initialized)
                {
                    var goToBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_tableGoTo") as ICommand;
                    if (goToBtnCmd != null)
                    {
                        if (goToBtnCmd.CanExecute(null))
                        {
                            goToBtnCmd.Execute(null);
                        }
                    }
                }
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 21:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1041750#M6398</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2021-03-29T21:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1041761#M6399</link>
      <description>&lt;P&gt;Did you try waiting for the&amp;nbsp;ActivePaneInitializedEvent to fire?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 22:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1041761#M6399</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-29T22:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1042029#M6403</link>
      <description>&lt;P&gt;Well, I subscribed to the&amp;nbsp;&lt;SPAN&gt;ActivePaneInitializedEvent&amp;nbsp; and placed a breakpoint inside the&amp;nbsp;OnActivePaneInitialized method. When execution got inside that method, I expected&amp;nbsp;pane.Initialized to be true but it was false. So yes&amp;nbsp;ActivePaneInitializedEvent&amp;nbsp; did fire first.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1042029#M6403</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2021-03-30T17:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1042221#M6404</link>
      <description>&lt;P&gt;Hmm, sounds like a bug to me. When an ActivePaneInitializedEvent fires, I would expect&amp;nbsp; FrameworkApplication.Panes.ActivePane.Initialized to be true, but it's not for me either with 2.7.1&lt;/P&gt;&lt;P&gt;As a workaround, I &lt;EM&gt;was&lt;/EM&gt; going to suggest subscribing to INotifyPropertyChanged when ActivePaneInitialized fires, and then wait for the PropertyChangedEvent to fire for the Initialized property - &lt;EM&gt;but that never fires either&lt;/EM&gt;. Maybe another bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 22:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1042221#M6404</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-30T22:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043154#M6414</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/331236"&gt;@MarvisKisakye1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find out when the Attribute table pane Initialization has &lt;EM&gt;begun &lt;/EM&gt;using the&amp;nbsp;ActivePaneInitializedEvent.&amp;nbsp; But this doesn't tell you when the Pane is completely in a "ready" state.&lt;/P&gt;&lt;P&gt;Pro uses "states" to determine when something is ready - For example, the "esri_editing_tableOpenState" state tells the application&amp;nbsp; when the table is open and ready. This is when the "esri_editing_tableGoTo" button on the ribbon gets enabled.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 20:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043154#M6414</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-04-01T20:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043160#M6416</link>
      <description>&lt;P&gt;Is it possible to subscribe to the&amp;nbsp;&lt;SPAN&gt;"esri_editing_tableOpenState" state? How can I listen for when the table is open and ready in order to programmatically open the&amp;nbsp;&amp;nbsp;"esri_editing_tableGoTo" button?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 20:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043160#M6416</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2021-04-01T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043162#M6418</link>
      <description>&lt;P&gt;Hi Marvis,&lt;/P&gt;&lt;P&gt;States are different from Events - you cannot subscribe to them.&amp;nbsp; They are useful for enabling/disabling controls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 20:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043162#M6418</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-04-01T20:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: ActivePaneChangedEvent unexpected behaviour</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043165#M6419</link>
      <description>&lt;P&gt;So what would you say would be the best way to accomplish what I am trying to do; open an attribute table, wait for it to be ready and then open the GoTo command?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 20:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/activepanechangedevent-unexpected-behaviour/m-p/1043165#M6419</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2021-04-01T20:48:55Z</dc:date>
    </item>
  </channel>
</rss>

