I am having difficulties getting a busy indicator to show when a dropDown button is clicked. The dropDown buttons are created dynamically from a collection and a command is attached to each button. When the button is clicked, the command executes a specific service call to get the content of the dropdown. However, this service call may take a while to execute and I would like to show a busyindicator when this is happening. I have tried adding the busy indicator to the dropdown content with the listbox that gets populated after the service call is finished executing. However, it seems that the dropdown content is not even visible until the service call finishes.
I have also tried putting a busy indicator outside of the dropdownbutton (on a higher branch of the visual tree). The problem is that once the dropdownbutton is clicked, it seems that the whole UI freezes until the content gets populated so the busy indicator does not show.
We do not want to make the service call until the user clicks on that dropdown button. Can you please guide me on how I can accomplish this?
I have also tried putting a busy indicator outside of the dropdownbutton (on a higher branch of the visual tree). The problem is that once the dropdownbutton is clicked, it seems that the whole UI freezes until the content gets populated so the busy indicator does not show.
We do not want to make the service call until the user clicks on that dropdown button. Can you please guide me on how I can accomplish this?