WPF MVVM Step by Step ( Windows Presentation Foundation)
Vložit
- čas přidán 14. 09. 2014
- For more such videos visit www.questpond.com
For more such videos subscribe czcams.com/users/questpondvide...
See our other Step by Step video series below :-
Learn C# Step by Step goo.gl/FNlqn3
Learn Design Pattern Step by Step:- goo.gl/eJdn0m
Learn Angular tutorial step by step tinyurl.com/ycd9j895
Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
Learn Azure Step by Step :- tinyurl.com/y6fmrech
Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
Python Tutorial for Beginners:- • Python Tutorial for Be...
Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
Learn Power BI Step by Step:- tinyurl.com/y6thhkxw
Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
Learn SQL Server Step by Step tinyurl.com/ja4zmwu
Learn Tableau step by step :- tinyurl.com/kh6ojyo
In this video we will learn step by step to implement WPF MVVM Architecture pattern step by step.
We are also distributing a 200 page Ebook ".NET Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.
Do not miss our Interview Question video series
30 Important C# Interview Questions : czcams.com/video/BKynEBPqiIM/video.html
25 Important ASP.NET Interview Questions : czcams.com/video/pXmMdmJUC0g/video.html
25 Angular Interview Questions : czcams.com/video/-jeoyDJDsSM/video.html
5 MSBI Interview Questions : czcams.com/video/5E815aXAwYQ/video.html
Excellent video, good work! This is the first MVVM tutorial I've seen that actually explains why you should use MVVM. It makes it so much easier to understand MVVM when it is desciribed in the context of an evolution from the old 3 tier architecture.
Great video, this video is one of the best explanation of MVVM i have seen - thank you.
I've been struggling to understand MVVM, but I think I "get it" now. Thank you for such an awesome explanation!
Finally, someone who explained the what and the why in such a simple, understandable way - now I understand what each component does and how they interact. That "Glue Code" explanation was the game-changer for me. Thank you so much, now I know what's going on
After watching hours of other content, I'm finally glad to stumble upon this one. Thank you very much!
You are a great teacher, the fact you have this put up for free is an even better service to the programming community.
Fantastic video! I really appreciate that you made it as simple as possible while giving enough broad context as to how and why these patterns evolved. Very helpful!
I wished I saw this earlier...your explanation is so helpful for a beginner like me. Thank you sir.
This is the first time i found a comprehensive lesson for MVVM. Thank you so much.
Thank you so much. This tutorial is very helpful for beginners like me.
Get a pop filter and adjust your gain.
I love watching all QuestPond videos. So useful and explained in very simple language. I highly recommend my friends to watch it for any kind of training. Keep it up. We need you.
Very good explanation....for beginners
Just came across this today and wish I had found it a lot sooner! Absolutely amazing job explaining this.
Extremely helpful, thank you! I liked that everything was step by step with an actual example.
MVVM (Model View View Model) is an GUI architecture pattern
- MVVM is the evolution of the 3 layer architecture
UI BL (Business Logic) DAL (Data Access Layer)
- the 3 layer architecture violates SRP (Single Responsibility Principle)
(because some layers are performing extra work which they are not supposed to do)
- MVVM solves the "glue code" between UI and business logic layer
(the "glue code" between business logic layer and data access layer is solved by repository pattern)
- types of glue code:
(the "owners" of this "glue code" is the UI code behind, which means some business logic codes are now part of the UI
[typically at .xaml.cs file of our UI])
- binding/mapping code
e.g.:
txtCustomerName = customer.Name;
- this code sends data from the ui to the business logic layer
or probably takes the data from the business logic layer to the ui
- transformation code
e.g.:
if (person.Gender == "M")
{
chkGender.IsChecked = true;
}
else
{
chkGender.IsChecked = false;
}
- data formats of the business logic layer and the ui can be different like the code above,
the business logic layer's property (Gender) has values M for male and F for female,
but when this data is displayed in the UI it is a checkbox (The UI doesn't understand "M" and "F" the UI only understands true or false)
- When we use MVVM architecture, we divide the project into three layers:
View View Model Model
- in MVVM each layer handles its own responsibilities
[VIEW]
- the view will refer the viewmodel (by "adding a reference")
- the view will invoke the viewmodel and the view model will invoke the model
- all the calls FROM the view will come TO the viewmodel, and the viewmodel will send those calls(FROM the view) TO the model
[VIEWMODEL]
- the viewmodel will refer the model (by "adding a reference")
- the viewmodel will be "using" the model
- has the logic that binds the View and the Model
- is a class library
- the view model will invoke the model
- whatever data you are exposing from a view model it should be of the least denominator type (do not try to use UI specific data type / UI technology specific data type)
[MODEL]
- the (most typically) real life object that you are trying to create
- is responsible for exposing data in a way that is easily consumable by WPF
Advantages of MVVM
- Contain changes
- when we make changes in one place, we don't have to change all across our project
- Increased reusability
Thank you very much for this simple and amazing explanation. You have a thorough understanding of all these concepts!!
I feel like a huge light has gone off in my head! Thank you for this video.
Thank you! This is the best video about MVVM I've found since days. Finally I got it =)
This was explained very well! Thanks
Beautifully made tutorial that is simple enough to introduce a complex subject. Thank you so much.
Best teacher ever ! Keep up the great work.
Great tutorial. Really helped me understand MVVM. Thank you!
Absolutely brilliant communicator. Well done sir
Thanks! Finally understood MVVM ...
Great video, great explanation, finally understood the concept, thank-you!
thank you . it was the best tutorial which presents best way of learning WPF MVVM .i wish you had a such tutorial for bindings and references in WPF.
This is the video, I am looking for since time. Thank you very much
Great! What a detailed and understandable explanation of MVVM. Good job!
Thank you, Sir. Your explanation is clearly understandable.
I knew I would get all the answers to my questions from Shiv sir. Amazing explanation
Excellent ,thank you, great skill in explaining this important topic.
Extremely easy and well explained video. Thank you!
The perfect video tutorial....Great work dude
Thank you very much for this video, it really helped me!
Watching this video was like reaching the NIRVANA. Very well explained !!!
best explanation and best use of exampled to explain MVVM
Nice tutorial. Explained clearly and so simple to understand
Simple, yet Excellent!
Well explained! Thank you so much!
Really nice video.. I could not find next video that was referred (commands in WPF MVVM). Can you please help me out in finding the video? Thanks
when will you upload the next video from this series? you are awesome, amazing tutorials
Great explanation! Thank you for this well thought out learning video
Excellent intro to the MVVM I was longing for
very good video, very good teaching skills. Like the step by step approach, which makes things much clear. Thank you. Keep up your good work.
Very nice explanation for understanding the architecure......
Great explained.
Many thanks!
What an amazing lecture!!!
Awesome Video.. Liked it so much..
Thank you so much for the beautiful video on MVVM..
Great video for understanding MVVM
thank you very much
i always liked to know how to use mvvm with wpf
Excellent Tutorial and Video. Thanks Shiv.
This was super helpful, thank you!
Great explanation. Good job with the tutorials.
(25:50 lol) Great video! Finally understand MVVM.
Many Thanks for this video...
It's really awesome vedio , explained in an easy way to understand... Gr8... I am not able to find other vedios..
Very nice and detail explanation. Thanks
Well explained, Thank you for all your efforts..
This video have a very good explanation, thanks, sir!
Great vid , i finally understand !
You are amazing, man. Good work
I've heard people say that using 3 tier architecture means contained changes but that is often not the case with UI changes. Whenever you make a UI change you almost always have to make a change to the data access layer too.
Nice explanation, Thanks a lot!
really useful. thanks. going to have to rethink my layout now :D
Excellent! You lay out a very clear vision...... please let us know where part II is.
Excellent video! Talented teacher
awesome video !!thanks so much beautiful explanation
Great video. Thank you so much.
best video on mvvm.
many thanks
your tutorial is very good
Informative & Awesome Explanation.. Thank U
Informative...Thank you
the best video i had see , good job you are the best
Excellent - hepled undestand MVVM
Thank you very much, this video is really helpful
No comment , god bless you.
Amazing video sir! Looking forward to more videos!
Very helpful, thanks.
Very good explanation and my concepts are very clear after watching your video. I tried to find your binding videos but not able to find. Can you please send me link of it?
Really Great and simple !!! Cheers
Nice tutorial, but i have a question about this example with C# WPF it's possible to use converters in the binding, so it would be possible to skip this view model and bind the view to the model directly and then add converters to the binding to transform the int to a color, or the string to a bool etc Would this still be considered MVVM in this case if the View is directly bound to the Model properties with binding converter classes?
great explanation man ! thx !!!
You are the best!!! Thank you so much sir..... :)
Thank you sir.
Very helpful ThankYou! Are the other videos uploaded? I can't find them thanks.
That's a great vdo.thanks a lot for such a clear 👏 explanation
Thank you very helpful regarding MVVM :-)
Great Job.
Such a good video. Thank you.
explained very well
hello! thanks for the tutorial!! I think some things have changed since, because whenever I wanted to set the IsMarried Property in the xaml,i got an error specifying that since the property (in the viewmodel) was readonly, i could not specify a value.
So in this:
the IsMarried="True" part was giving the error.
I fixed it adding a setter to the IsMarried property in the viewmodel.
Hi, Could you please help with how to place the setter. I have added the following setter, but the check box does not get updated at run-time:
public bool IsMarried
{
get
{
if (obj.Married == "Married")
{
return true;
}
else
{
return false;
}
}
set { obj.Married = Convert.ToString(value); }
}
thanks very much
Very good video for beginner
Thank you from Armenia ))
Thank for MVVM explanation. Can we use MVVM in asp.net webforms projects?
you are awesome.
damn you're good at explaining. of all the videos i've watched
u are the best