This is most likely a very simple issue.
I have a progressbar that I want to show when a button is clicked (which starts a long running function) and then make invisible when the function completes.
*</div>*
- *
- *
protected async System.Threading.Tasks.Task BtnProcessClick(MouseEventArgs args)
** {**
** Globals.lblStatusText = "In Process";**
** Globals.bShowRunning = true;**
** Globals.lblStatusText = "Processing";**
** Globals.ErrorMsg = "";**
** Globals.bFirst = false; **
** Reload(); /* InvokeAsync(StateHasChanged).Wait(); /*
** var selectedXlsxResult = await SelectedXLSX();**
** }**
The progressbar is set to (Globals.BShowRunning = true) when the button is invoked but the progressbar does not become visible until the long running function completes.and other GUI buttons become visible..
I am making numerous calls to InvokeAsync(StateHasChanged).Wait(); without any obvious effect.
Any assistance would be appreciated.