Hi,
I have couple of edit tools (Modify Features) which are also shown in the Ribbon tabs. For these tools we have also created our own custom selection tool just like Pro's. This custom selection tool contains multiple tools inside based on different shapes like Rectangle, Polygon, Lasso (basically just like Pro's selection tool which is present inside Pro's edit tools UI). Now when our main custom edit tool is opened from Ribbon tab we are setting the Rectangle selection tool as active inside the custom tool's UI. But since we can open one map tool at a time so our main custom to not be closed and to remain open we have set property KeepControlOpenAfterDeactivation as true so that it will remain opened even if selection tool becomes active inside this custom tool.
Now the problem is in regular scenarios when map tool is opened from the Ribbon and after it will become active, it will also be shown as selected in the Ribbon which will tell the users that this tool is active. But due to our specific case where a selection tool is becoming active inside our main tool it is not shown as selected in the Ribbon tab.
One way looks like to set Checked property of the button from which tool is opened.
And there is one more issue sometimes on first click tool UI is not visible but I know that the tool is active. And on second click tool UI appears. This usually happens when move from one tool to another from Ribbon.
@Wolf @GKmieliauskas @CharlesMacleod