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


Taurius Litvinavicius1  
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.
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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.