Questions tagged [mvvm]

Model-View-ViewModel (MVVM) is an architectural design pattern for implementing user interfaces that separates the UI (the View) from its data (the Model) via its presentation logic (its ViewModel).

Model-View-ViewModel (MVVM) is an architectural design pattern for implementation of user interfaces. Its primary focus is on separation of concern between the View (UI) and the Model (Data) by using an intermediate layer called a ViewModel to enhance manageability, scalability, and testability.

It is used in all based frameworks including , , ,,, the ZK framework and frameworks including KnockoutJS. Popular .Net frameworks implementing the pattern include:

See Also:

29966 questions
87
votes
4 answers

What are the pros and cons of android data-binding?

Both of my colleague and I have experience in MVVM of Web App, while we are new to native android development. Now we have contrary opinions about android data-binding -- I'm a fan of it while he is not. My Arguments: Reduces boilerplate code which…
lzl124631x
  • 4,485
  • 2
  • 30
  • 49
86
votes
6 answers

Angular design pattern: MVC, MVVM or MV*?

Angular 1.x (AngularJS) was following more or less the MV* design principle because of its two-way data binding functionality. Angular2 is adopting a component-based UI, a concept that might be familiar to React developers. In a sense, the Angular…
AnonDCX
  • 2,501
  • 2
  • 17
  • 25
86
votes
9 answers

How to use data-binding in Dialog?

I am having trouble in implementing databinding in a Dialog. Is it possible? Below is my xml.
Nidhin Rejoice
  • 1,367
  • 1
  • 16
  • 26
85
votes
13 answers

How to 'await' raising an EventHandler event

Sometimes the event pattern is used to raise events in MVVM applications by or a child viewmodel to send a message to its parent viewmodel in a loosely coupled way like this. Parent ViewModel searchWidgetViewModel.SearchRequest += (s,e) => { …
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
84
votes
22 answers

WPF MVVM: How to close a window

I have a Button that closes my window when it's clicked: That's fine until I add a Command to the Button i.e.
80
votes
9 answers

How can I bind the html content in vuejs?</a></h3> <div class="excerpt">I'm trying a demo on vuejs. Now I want the html title to bind a vm field. The below is what I tried: index.html <!DOCTYPE html> <html id="html"> <head> <title>{{ hello }}