I have an add-in where I want to display a dialog to get the desired spatial reference from the user. I am using the built-in coordinate system dialog. I want the dialog to only display projected coordinate systems for selection.
Hi Sai, Than,
It is not possible to display just a subset of the coordinate systems in the Coordinate system picker control.
Take a look at
arcgis-pro-sdk-community-samples/Geometry/CoordinateSystemDialog at master · Esri/arcgis-pro-sdk-community-samples · Git…
It is similar to what you want, but you might need to tweak a few things.
Thanks for looking into this Than Aung
I did see the sample and that uses a custom list of Coordinate systems and we have an option to just show PCS in there.
What I am trying now is to use the default coordinate system picker control(to avoid using a custom list) and want to keep the user experience too same while using custom addin or pro's defaults to choose spatial reference.
That's right Sai,
Seem to be you want to reuse the existing default coordinate system picker control from ArcPRO (I didn't see in the SDK tool as well)
May be Uma Harano can help.
Thank Uma for your reply,
That scenario is similar to what I tried to reuse couple of existing pro UI with my custom development.
I think, that could be great if xaml files can be shared with sdk.
So that when we do development, the UI shall be consistent.
In future releases, it would be great to see a couple of properties like Show GCS, Show PCS and a method to reset the selection for Coordinate systems control.
Than Aung I Agree.
Retrieving data ...