Hi,
In my map tool, there is another map tool inside it for selecting different features just like in many custom tools in Pro for map selection. And then it also contains other controls for my map tool. By default when my tool is opened this map selection tool is made active therefore when my tool is opened map selection tool will always be active. After my actual tool executed its work data is in edit and also same data is reflected in my tool’s UI. But what if user instead of save ,will discard the changes. So I can subscribe to EditCompletedEvent and check if operation type is discard then I will come to know discard button is pressed. Now what I want is to update the UI again as per the map selection at that time and those new edited changes should be removed from the UI.
I thought that I will check if the active tool is my tool on discard and then process the load of my tool once again based on the map selection and it will update the UI by removing the edit changes. But the problem is when my tool is opened it can never be the active tool since map selection tool inside my tool will be active tool always.
Can someone guide me how to handle discard in this scenario so that UI should be updated?
@Wolf @GKmieliauskas @UmaHarano @CharlesMacleod