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().
Solved! Go to Solution.
Hello,
Thanks for bring this bug to our attention. This will be fixed for the Pro 3.4 release.
Hello,
Thanks for bring this bug to our attention. This will be fixed for the Pro 3.4 release.