DRAG DROP
You need to ensure that the product details are displayed.
Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Select and Place:
Explanation/Reference:
Box 1: Bind the model to the view.
Box 2: Instantiate the model with product details.
View models connect to the app’s underlying model by calling instance methods.
Box 3: Iterate through the product details.
Note:
* Here are the relationships between a view, a view model and a model.
* MVVM is an architectural pattern. It is a specialization of the presentation model pattern that was introduced by Martin Fowler. It is also related to the model-view-controller pattern (MVC) and the model view presenter (MVP) pattern that you may already know.
An app that uses MVVM separates business logic, UI, and presentation behavior.
/ Models represent the state and operations of business objects that your app manipulates. For example, Hilo reads and modifies image files, so it makes sense that data types for image files and operations on image files are part of Hilo’s model.
/ Views contain UI elements, and they include any code that implements the app’s user experience. A view defines the structure, layout, and appearance of what the user sees on the screen. Grids, pages, buttons, and text boxes are examples of the elements that view objects manage.
View models encapsulate the app’s state, actions, and operations. A view model serves as the decoupling layer between the model and the view. It provides the data in a format that the view can consume and updates the model so that the view does not need to interact with the model. View models respond to commands and trigger events. They also act as data sources for any data that views display. View models are built specifically to support a view. You can think of a view model as the app, minus the UI. In Windows Store apps, you can declaratively bind views to their corresponding view models.
Reference:
Using the Model-View-ViewModel (MVVM) pattern in Hilo (Windows Store apps using C++ and XAML) (Windows)