Design patterns·The shape of the whole application
you changed a property on the viewmodel and the label updated, and no code you wrote connected the two.
Model-view-viewmodel
Also calledMVVM, model view viewmodel
A presentation model plus declarative data binding: the view binds to properties and commands on a viewmodel, and the framework propagates changes both ways. It removes the per-field wiring that MVP requires and moves the cost into a binding layer whose failures are silent — a misspelled binding path that simply shows nothing. It requires framework support to exist at all, which is the practical difference from presentation model.