I recently started learning the Windows ecosystem (C#, .NET, WPF and XAML) and as expected is a totally different world. One thing that I would like to start doing from the beginning is to create my apps following the MVVM pattern since it seems to be the standard for WPF
applications; I have been searching for good tutorials for beginners and so far I haven't found one that show step by step how to implement MVVM.
I have done a little bit of iOS programming so I'm used to the MVC
pattern and I was wondering if it would make sense to follow the same design patter for WPF applications.
This is how I was thinking to structure my code following the MVC
pattern.
Model - Data Classes
View - MainWindow.xaml
Controller - MainWindow.xaml.cs
Do you guys see any problem with the above file structure?
What is the main benefit of using MVVM
? I'm a little confused about data binding which seems to be very tight to the MVVM
pattern in WPF
.
Thanks