WPF MVVM Tutorial: Build An App with Data Binding and Commands

preview_player
Показать описание
In this video, you will learn how to use the MVVM pattern in WPF to create a app. MVVM stands for Model-View-ViewModel and it is a design pattern that helps you separate the presentation layer from the business logic and data layer of your application. You will learn how to use data binding, commands, in WPF to make your code more maintainable and testable. This video is suitable for beginners who have some basic knowledge of C# and WPF.

Source Code :
Рекомендации по теме
Комментарии
Автор

Barely starting MVVM WPF and I can see some flaws in what is explained :
- The ViewModel should not reference a View at all, as I understood it opening a new windows in a MVVM-friendly manner is hard but it shouldn't be dealt with like that
- Using an event handler in the code behind is an unwanted simplification. Wether the View's code-behind should or not have anything is a discussion but the main point is that it shouldn't contain any logic, but the filtering is done entirely by the View (which also mean you can't unit-test it). The logic should be in the ViewModel, maybe through a property binded in two-way/one way to source and the filtering is called in the setter of the property

belgabad
Автор

Last year I inherited a 600 dll MVVM project with poor documentation. This video has brought me so much clarity. I've been programming C# for 15 years on and off, but that has been 90% winforms and 10% MVC and some WPF, but not true MVVM. In fact this video reminds me of a tutorial I read in 1995 for C++ MFC. That "scribble" tutorial provided just the foundations of the framework and I was then able to write C++ MFC applications which I'm still doing at work nearly 30 years later. This video, I feel, covers the MVVM foundations in much the same way. Thankyou.

philsnewaddress
Автор

This deserves more recognition, thank you for the clear explanation!

wenhanchia
Автор

Cool video. Thanks for this. Small request. Can you do this with mvvm toolkit?

SrimalSamarasooriya
Автор

Is it really okay to show a window from the viewModel? I though view models should be able to be unit tested and not depend on UI stuff like showing windows?

MattCantSpeakIt
Автор

This tutorial was immensely useful for me in 2024

standman
Автор

I just learned C# and WPF about a month ago, and this video really helps me understand how MVVM works. Thank you! 👍

wawandharmawan
Автор

Thompson Jeffrey Johnson Maria Jackson Ruth

AntoinetteFanny-ls
Автор

Can you do a new video with WPF, windows mvvm community toolkit and efcore to sqlite?!
This should be a piece of cake for you...
Please enlighten us😊

niangel
Автор

Good video but is there a video where you actually have real data stored?

HOWYOUDOIN
Автор

Graet video but i have a question, why the filter was not included in MainVindowViewModel?

fabriziocivati
Автор

Great audio. The previous one wasn't clear.

nyendwa
Автор

Absolutely amazing, well paced, straightforward and includes some tips and tricks here and there. You've ganiened another sub and my respect 🤝

angelenriquechavezponce
Автор

Great video, could you do a part 2 where you add ef core and a sqlite db? Would love to see that 😀

tommcmeekin
Автор

Ok, just the sound is hard on the ears

velikanskaglava
Автор

in what scenario do we need to use icomamnd, you used command to popup a window and add a content to he list, but you did not implemented for filter any specific reason for that, kindly explain me indetail

kishiforyou
Автор

Thanks ! Great video, just an extended question on the same, how would you implement the tab functionality on the search box? After searching the name, I want to tab to the first element and highlight the first row. TIA

JitendraKumar-fowj
Автор

Thank you for the great video. Adding timestamps to the video would help a lot for users like me to jump the relevant part

rushas
Автор

I decided to learn windows development using wpf, was searching and your channel popped up. i really love your videos and explanations. it would be really nice if you starting a series for newbies like me.

yunussurchy
Автор

It appears you already have some code during the startup this makes it confusing how can i get the code at the level you have it at start

blayzehoodly