Hi guys,
If I have a ViewModel with an async method, how can I define a Command to bind to a button in my View?
The problem I see is that when I click the Login button, I am not navigated from my login View to my main view, but if I click somewhere on the page, then the navigation happens indeed. If I remove async from the method, this works from the first click.
I am reading in the docs about Application.Update(this), but I don’t think it is reasonable to call Application.Update(this) from the ViewModel, what “this” should be in that case?
Is this even possible, or am I trying in vain?
Best regards,
Alex
For example, I have a LoginViewModel with the following method.
And I am trying to define my command in the constructor:
