Hi,
I have a Combobox and a Button. The button should be disabled until there is something selected in the Combobox. How can i achieve this with the ArcGIS Pro SDK?
Thanks for any help.
Urs
You can implement States and Conditions to enable/disable controls on the ribbon.
ProGuide: Code Your Own States and Conditions
Sample: Working with DAML This sample has a section that creates a custom state and condition.
Thanks
Uma
Maybe my topic wan't clear. The Button is a MapTool and the Combobox is is also in the ArcGIS pro Ribbon. So my question is how I can get a reference in the MapTool Object (Button) to Combobox Object and vice versa.
You need to create an event on the ComboBox.SelectionChange. Inside that event handler use
button<SPAN class="punctuation token">.</SPAN>Enabled <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.