Progress Bar Only Updating once Method Complete #5986
-
|
Hi there, I'm struggling to get something working and hoping someone can point me in the right direction. I have a ReactiveCOmmand which is called from a button that does some processing on some excel sheets. Constructor for VM VM The code is all working fine - the problem is that the OnProgressChanged Event Handler is only called once the ReactiveCommand finishes running and so my progressbar which is bound to ProgressIncrement doesn't update until after the command is already finished - slightly defeating the point! Can anyone shed any light? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I don't see anything wrong with this code. Problem might be inside of ProcessPerDiemsAsync method. |
Beta Was this translation helpful? Give feedback.
I don't see anything wrong with this code. Problem might be inside of ProcessPerDiemsAsync method.
It also important to remember, that Progress invokes ProgressChanged on sync context on which Progress object was created (see dotnet/runtime/Progress.cs#L34). So you need to ensure that you creates that object on UI thread.
If it didn't help, can you share minimal project to run and test?