Task Description:

There is a button "Start search", when clicked, the search starts. After that, the button changes the text to "Stop Search", and if you click, the search stops.

I think to implement it this way: after clicking the button to sign it on different handlers. But I do not understand how to do it.

There is a trigger that allows you to change the Holy Island, but not the signature on the event.

Question: maybe there is a more correct way?

    1 answer 1

    The easiest way is probably to put two buttons, one on another. The second let it be hidden. When you click on the first button, hide it, and show the second button. This can be done both via triggers, and through binding to the VM property. Or even manually from the code-behind, if you want.