i want to start a task when a relay command is called, however i want to disable the button as long as that task is running
take this example
private
You could have a static variable IsRunning, which you can set to True when your task starts, to false when it finishes, and just bind that enabled button to the state of the IsRunning
IsRunning