AnsweredAssumed Answered

Pro Dialogs with Queued Task

Question asked by AdamDavis on May 8, 2020

Hi,

 

I want to revisit the requirement NOT to be in a QueuedTask to show a Dialog such as OpenItemDialog, SaveItemDialog and the CoordinateSystemPicker example.

 

When in a QueuedTask the dialogs spin endlessly.

 

I would like Esri to rethink this restriction.

 

As an experiment we implemented a basic Coordinate System Picker that works in all conditions. The Esri dialog spins endlessly whilst waiting for the coordinate list to show.

 

The line of code that creates a list of inbuilt Coordinate Systems is

IReadOnlyList<CoordinateSystemListEntry> coordinateSystemListEntries =

                GeometryEngine.Instance.GetPredefinedCoordinateSystemList(

                    CoordinateSystemFilter.GeographicCoordinateSystem | CoordinateSystemFilter.ProjectedCoordinateSystem);

This function is not restricted on which thread it runs so I am unclear as to why the Esri Coordinate System Picker hangs.

https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic15554.html

 

Please rethink the internal design of these dialogs so that we can use them without restrictions.

 

Thanks,

 

Adam

Outcomes