I have a situation where I need to know when the RADBusyIndicator is unloaded. The IsBusy is binded to a property 'ShowMessage' and when I do in the code behind:
public void foo()
{
obj.ShowMessage = false; //Set IsBusy binded property in View Model names 'obj' to false
while (busyIndicator.IsBusyIndicationVisible)
{ System.Threading.Thread.Sleep(100);}
//--------- Code to execute after BusyIndicator unloaded
}
However this does not work and code goes into an infinite loop at the while.
Next I executed:
while (busyIndicator.IsBusyIndicationVisible)
{ System.Threading.Thread.Sleep(100);}
//--------- Code to execute after BusyIndicator unloaded
In a separate thread, but that also does not work which is very strange. I seems BusyIndicator blocks on every access to busyIndicator.IsBusyIndicationVisible property.
Any workaround will be very helpful.
Thanks,
Chait
public void foo()
{
obj.ShowMessage = false; //Set IsBusy binded property in View Model names 'obj' to false
while (busyIndicator.IsBusyIndicationVisible)
{ System.Threading.Thread.Sleep(100);}
//--------- Code to execute after BusyIndicator unloaded
}
However this does not work and code goes into an infinite loop at the while.
Next I executed:
while (busyIndicator.IsBusyIndicationVisible)
{ System.Threading.Thread.Sleep(100);}
//--------- Code to execute after BusyIndicator unloaded
In a separate thread, but that also does not work which is very strange. I seems BusyIndicator blocks on every access to busyIndicator.IsBusyIndicationVisible property.
Any workaround will be very helpful.
Thanks,
Chait