i see a lot of examples with queuedtask.run which is according to the documentation to let sync-methods of the SDK run in the background.
I made an custom gallery and want to populate data from Portal on the dropdownopened.
Then I run into statements like:
var results = await ArcGISPortalExtensions.SearchForContentAsync(portal, query);
How do I use those than properly inside the public async void DropdownOpened?
After the results are loaded I wanted to change some state-properties as well.
How will I be sure that the results are fully loaded first before the state change?
I tried many options already and I am not sure about any of them. In some cases nothing happens but the spinner is still visible and keeps on going.