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>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.