<?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 Bug in extension Pane.ActivateAndDelay(this Pane pane, int delay = 100) in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-in-extension-pane-activateanddelay-this-pane/m-p/1505693#M11877</link>
    <description>&lt;P&gt;I discovered the bug on subject while working on an Addin where I needed such extension. Currently working on 3.2 SDK, the extension is located in the namespace ArcGIS.Desktop.Internal.Mapping.UtilityExtensions and is defined as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static Task ActivateAndDelay(this Pane pane, int delay = 100)
{
    if (pane != null)
    {
        pane.Activate();
        if (delay &amp;gt; 0)
        {
            return Task.Delay(100);
        }
    }

    return Task.CompletedTask;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bug is pretty obvious: the parameter 'delay' is just ignored. Note that this bug also affects at least another extension, ActivateAndExecute(this Pane pane, Func&amp;lt;Task&amp;gt; function, int delay = 100), since it calls&amp;nbsp;ActivateAndDelay().&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 08:13:21 GMT</pubDate>
    <dc:creator>Asimov</dc:creator>
    <dc:date>2024-07-16T08:13:21Z</dc:date>
    <item>
      <title>Bug in extension Pane.ActivateAndDelay(this Pane pane, int delay = 100)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-in-extension-pane-activateanddelay-this-pane/m-p/1505693#M11877</link>
      <description>&lt;P&gt;I discovered the bug on subject while working on an Addin where I needed such extension. Currently working on 3.2 SDK, the extension is located in the namespace ArcGIS.Desktop.Internal.Mapping.UtilityExtensions and is defined as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static Task ActivateAndDelay(this Pane pane, int delay = 100)
{
    if (pane != null)
    {
        pane.Activate();
        if (delay &amp;gt; 0)
        {
            return Task.Delay(100);
        }
    }

    return Task.CompletedTask;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bug is pretty obvious: the parameter 'delay' is just ignored. Note that this bug also affects at least another extension, ActivateAndExecute(this Pane pane, Func&amp;lt;Task&amp;gt; function, int delay = 100), since it calls&amp;nbsp;ActivateAndDelay().&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-in-extension-pane-activateanddelay-this-pane/m-p/1505693#M11877</guid>
      <dc:creator>Asimov</dc:creator>
      <dc:date>2024-07-16T08:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in extension Pane.ActivateAndDelay(this Pane pane, int delay = 100)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-in-extension-pane-activateanddelay-this-pane/m-p/1507146#M11892</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for bring this bug to our attention.&amp;nbsp; This will be fixed for the Pro 3.4 release.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 23:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-in-extension-pane-activateanddelay-this-pane/m-p/1507146#M11892</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2024-07-18T23:46:02Z</dc:date>
    </item>
  </channel>
</rss>

