DotVVM Academy


This application is not supported on mobile browsers.


The Command Binding can be used to call viewmodel methods from the view.

Commands can be used from many controls. Here you can see how it would be used in the Button control:

<dot:Button Click="{command: Add()}"
            Text="Add" />

Changes made by the Add method will be sent back to the browser and the page will be updated.


  • Add two <dot:Button /> controls to the <body> element.
  • Use Command Bindings to call the Add and Subtract methods you created earlier by clicking on the buttons.