Is it possible to load combobox defined in Config.daml automatically on ArcGIS Pro start? Something like loadOnClick="false" for button. I want to load combobox without necessity to go to add-in tab. I need it to have combobox view model created when add-in initialized.
The ComboBox class is created only when it gets visible. This is by design. The Combobox contents can be initialized in the Module Class. You can then access this in your ComboBox class by referencing it from the Module. module1.Current.ComboBoxItems...
How do you actually reference the combobox in module1? Can you provide an example. I am trying to do the same only with a prowindow.
No, that doesn't work. ComboBox view model is not created until add-in tab opened in ribbon. Seems like a bug.
You can set the "autoload" attribute for the "insertModule" element in the Config.daml to true in your add-in. This will load your add-in as soon as Pro opens up.
... <SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>modules</SPAN><SPAN class="punctuation token">></SPAN></SPAN> <SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>insertModule</SPAN> <SPAN class="attr-name token">id</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>Pro_AddIn_Module<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">className</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>Module1<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">autoLoad</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>true<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">caption</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>Module1<SPAN class="punctuation token">"</SPAN></SPAN><SPAN class="punctuation token">></SPAN></SPAN> ...<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.