I have my Add-In on ArcGIS Pro under which I have 4 buttons. So, now I want if I click on any button I want rest of the button get disabled. Until I close the current page.
ArcGIS Pro SDK 2.8 VS2019
I think the easiest way to do this is to use the condition. Set the condition in the config.daml file for your buttons. Then in the code, you can control the state of the condition. There are examples of how to do this in the AGP Wiki (a great resource to use as it answers A LOT of questions you might have).
Hi @TapasChakrabarty ,
On top of states and conditions, you can use this code to enable/disable the button from the ribbon bar.
FrameworkApplication.GetPlugInWrapper("your button id in daml").Enabled = false;
Hi, thanks for this tip. In my use case, this FrameworkApplication.GetPlugInWrapper("your button id in daml").Enabled = false; is complaining about being a read only property :(... Any ideas?
Thanx in advance!!