© Taurius Litvinavicius 2021
T. LitvinaviciusExploring Windows Presentation Foundationhttps://doi.org/10.1007/978-1-4842-6637-3_5

5. MVVM

Taurius Litvinavicius1  
(1)
Jonava, Lithuania
 
Although MVVM is a structure that we can represent in drawings and diagrams, what you really need to know is the way to handle events and other things in the WPF. Before jumping into the examples, we need to take a look at some theory and how this arrangement can be used.
../images/505670_1_En_5_Chapter/505670_1_En_5_Fig1_HTML.jpg
Figure 5-1

Basic representation of MVVM

The View in the MVVM is the XAML file (either for window or for page). The main idea here is not to use the code-behind file; instead, we have the ViewModel file ...

Get Exploring Windows Presentation Foundation: With Practical Applications in .NET 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.