Select to view content in your preferred language

Bug in extension Pane.ActivateAndDelay(this Pane pane, int delay = 100)

287
1
Jump to solution
07-16-2024 01:13 AM
Asimov
by
Regular Contributor

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:

 

public static Task ActivateAndDelay(this Pane pane, int delay = 100)
{
    if (pane != null)
    {
        pane.Activate();
        if (delay > 0)
        {
            return Task.Delay(100);
        }
    }

    return Task.CompletedTask;
}

 

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<Task> function, int delay = 100), since it calls ActivateAndDelay().

Tags (3)
1 Solution

Accepted Solutions
NarelleChedzey
Esri Contributor

Hello, 

Thanks for bring this bug to our attention.  This will be fixed for the Pro 3.4 release. 

 

View solution in original post

1 Reply
NarelleChedzey
Esri Contributor

Hello, 

Thanks for bring this bug to our attention.  This will be fixed for the Pro 3.4 release.