Inspector attribute fields nullified when switching Edit Mode to OFF

165
0
12-05-2023 10:45 AM
IgorDrapsin
New Contributor II

We are using ArcGIS.Desktop.Editing.Attributes.Inspector to display attributes with "LoadSchemaAsync", create viewmodel and view to be displayed with "CreateEmbeddableControl" and subscribe to "PropertyChanged" to listen for changes.

Problem comes when user changes FROM Edit mode to "Not Editing". 

IgorDrapsin_0-1701801761760.png

What is happening, inspector immediately nullifies the fields...

IgorDrapsin_1-1701801804200.png

Are we using this correctly? How can we avoid this?

Note: Listening to "IsEditingEnabled" event doesn't help as it arrives asynchronously at certain moment during this change, but even as such, is only a hotfix

 

0 Kudos
0 Replies