WPF MVVM Step by Step ( Windows Presentation Foundation)

Sdílet
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.

Komentáře • 146

  • @dnfvideo
    @dnfvideo  Před 2 lety +1

    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

  • @SimonCash
    @SimonCash Před 9 lety +20

    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.

  • @Ididitagain66
    @Ididitagain66 Před 9 lety +20

    Great video, this video is one of the best explanation of MVVM i have seen - thank you.

  • @GavinBath
    @GavinBath Před 7 lety +4

    I've been struggling to understand MVVM, but I think I "get it" now. Thank you for such an awesome explanation!

  • @ipelengmolete161
    @ipelengmolete161 Před 9 lety

    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

  • @deejung_xyz
    @deejung_xyz Před 3 lety +1

    After watching hours of other content, I'm finally glad to stumble upon this one. Thank you very much!

  • @roflex2
    @roflex2 Před 7 lety

    You are a great teacher, the fact you have this put up for free is an even better service to the programming community.

  • @DarkMagicDesigner
    @DarkMagicDesigner Před 4 měsíci

    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!

  • @kalp1200
    @kalp1200 Před 2 lety +1

    I wished I saw this earlier...your explanation is so helpful for a beginner like me. Thank you sir.

  • @JustMeNoElse
    @JustMeNoElse Před 9 lety

    This is the first time i found a comprehensive lesson for MVVM. Thank you so much.

  • @fiszunio
    @fiszunio Před 9 lety +7

    Thank you so much. This tutorial is very helpful for beginners like me.

  • @Voxvalve
    @Voxvalve Před 9 lety +39

    Get a pop filter and adjust your gain.

  • @jaankie18
    @jaankie18 Před 5 lety

    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.

  • @jainikprajapati1632
    @jainikprajapati1632 Před 5 lety +1

    Very good explanation....for beginners

  • @Roan_W
    @Roan_W Před 9 lety

    Just came across this today and wish I had found it a lot sooner! Absolutely amazing job explaining this.

  • @StoneCosta
    @StoneCosta Před 9 lety

    Extremely helpful, thank you! I liked that everything was step by step with an actual example.

  • @zerosandones7547
    @zerosandones7547 Před 3 lety

    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

  • @rubberduckdev2398
    @rubberduckdev2398 Před 6 lety

    Thank you very much for this simple and amazing explanation. You have a thorough understanding of all these concepts!!

  • @argusreynolds2726
    @argusreynolds2726 Před 7 lety +1

    I feel like a huge light has gone off in my head! Thank you for this video.

  • @soomon
    @soomon Před 8 lety

    Thank you! This is the best video about MVVM I've found since days. Finally I got it =)

  • @AussieRaver1996
    @AussieRaver1996 Před 6 lety +2

    This was explained very well! Thanks

  • @jaeranxwhitterker1578

    Beautifully made tutorial that is simple enough to introduce a complex subject. Thank you so much.

  • @SushrutKanetkar
    @SushrutKanetkar Před 6 lety

    Best teacher ever ! Keep up the great work.

  • @domingogutierrez7305
    @domingogutierrez7305 Před 6 lety

    Great tutorial. Really helped me understand MVVM. Thank you!

  • @rhurac5096
    @rhurac5096 Před 8 lety

    Absolutely brilliant communicator. Well done sir

  • @81NARY
    @81NARY Před 6 lety

    Thanks! Finally understood MVVM ...

  • @dboulos7
    @dboulos7 Před 7 lety

    Great video, great explanation, finally understood the concept, thank-you!

  • @afghanboy4022
    @afghanboy4022 Před 5 lety

    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.

  • @georgetomeh8898
    @georgetomeh8898 Před 4 lety

    This is the video, I am looking for since time. Thank you very much

  • @jurgenbartalis1933
    @jurgenbartalis1933 Před 3 lety

    Great! What a detailed and understandable explanation of MVVM. Good job!

  • @EriAirlangga
    @EriAirlangga Před 7 lety

    Thank you, Sir. Your explanation is clearly understandable.

  • @gaurangnaik8192
    @gaurangnaik8192 Před rokem

    I knew I would get all the answers to my questions from Shiv sir. Amazing explanation

  • @yinnonyairdotan6192
    @yinnonyairdotan6192 Před 6 lety

    Excellent ,thank you, great skill in explaining this important topic.

  • @fata__morgana
    @fata__morgana Před 4 lety

    Extremely easy and well explained video. Thank you!

  • @nidhindavid634
    @nidhindavid634 Před 9 lety

    The perfect video tutorial....Great work dude

  • @jayminoncia9845
    @jayminoncia9845 Před 7 lety

    Thank you very much for this video, it really helped me!

  • @hattorihanzo8788
    @hattorihanzo8788 Před 4 lety

    Watching this video was like reaching the NIRVANA. Very well explained !!!

  • @80amnesia
    @80amnesia Před 5 lety +1

    best explanation and best use of exampled to explain MVVM

  • @Mrkandy422
    @Mrkandy422 Před 9 lety

    Nice tutorial. Explained clearly and so simple to understand

  • @satishm79
    @satishm79 Před 9 lety

    Simple, yet Excellent!

  • @krp1eee
    @krp1eee Před 6 lety

    Well explained! Thank you so much!

  • @VBATutor
    @VBATutor Před 8 lety +6

    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

  • @Zergosss
    @Zergosss Před 9 lety +2

    when will you upload the next video from this series? you are awesome, amazing tutorials

  • @csharprob2786
    @csharprob2786 Před 4 lety

    Great explanation! Thank you for this well thought out learning video

  • @anwerazeemch
    @anwerazeemch Před 3 lety

    Excellent intro to the MVVM I was longing for

  • @vaporizer08
    @vaporizer08 Před 9 lety

    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.

  • @amanthakur1987
    @amanthakur1987 Před 9 lety

    Very nice explanation for understanding the architecure......

  • @manjeetnandal1
    @manjeetnandal1 Před 4 lety

    Great explained.
    Many thanks!

  • @marylee2188
    @marylee2188 Před 3 lety

    What an amazing lecture!!!

  • @sravanthiv1848
    @sravanthiv1848 Před 9 lety

    Awesome Video.. Liked it so much..
    Thank you so much for the beautiful video on MVVM..

  • @UmerFarooq-kl3pj
    @UmerFarooq-kl3pj Před 6 lety

    Great video for understanding MVVM

  • @krimbelkacem5751
    @krimbelkacem5751 Před 9 lety

    thank you very much
    i always liked to know how to use mvvm with wpf

  • @rameshpudhucode6862
    @rameshpudhucode6862 Před 6 lety

    Excellent Tutorial and Video. Thanks Shiv.

  • @ALottaBees
    @ALottaBees Před 4 lety

    This was super helpful, thank you!

  • @modememiss5805
    @modememiss5805 Před 7 lety

    Great explanation. Good job with the tutorials.

  • @insertoyouroemail
    @insertoyouroemail Před 8 lety +1

    (25:50 lol) Great video! Finally understand MVVM.

  • @nitishkumarchandan
    @nitishkumarchandan Před 9 lety

    Many Thanks for this video...

  • @ravindrababu2780
    @ravindrababu2780 Před 9 lety

    It's really awesome vedio , explained in an easy way to understand... Gr8... I am not able to find other vedios..

  • @TanmaySakhale
    @TanmaySakhale Před 5 lety

    Very nice and detail explanation. Thanks

  • @SujeetKumar-ck6se
    @SujeetKumar-ck6se Před 4 lety

    Well explained, Thank you for all your efforts..

  • @muinmundzir5883
    @muinmundzir5883 Před 5 lety

    This video have a very good explanation, thanks, sir!

  • @Faideela
    @Faideela Před 8 lety

    Great vid , i finally understand !

  • @boho2005
    @boho2005 Před 6 lety

    You are amazing, man. Good work

  • @chrisn4730
    @chrisn4730 Před 8 lety

    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.

  • @EldorPrimov
    @EldorPrimov Před 9 lety

    Nice explanation, Thanks a lot!

  • @OctarineFoundry
    @OctarineFoundry Před 8 lety

    really useful. thanks. going to have to rethink my layout now :D

  • @collinc4
    @collinc4 Před 9 lety

    Excellent! You lay out a very clear vision...... please let us know where part II is.

  • @mahmoudzeort7078
    @mahmoudzeort7078 Před 2 lety

    Excellent video! Talented teacher

  • @abhijitv
    @abhijitv Před 8 lety

    awesome video !!thanks so much beautiful explanation

  • @elamaranelamvazhuthi4744

    Great video. Thank you so much.

  • @handover007
    @handover007 Před 3 lety

    best video on mvvm.

  • @hazemelamir2083
    @hazemelamir2083 Před 7 lety

    many thanks
    your tutorial is very good

  • @shivshankarrg5179
    @shivshankarrg5179 Před 9 lety

    Informative & Awesome Explanation.. Thank U

  • @madhavdongre4209
    @madhavdongre4209 Před 9 lety

    Informative...Thank you

  • @nezarhassani6495
    @nezarhassani6495 Před 5 lety

    the best video i had see , good job you are the best

  • @wilsonsebeniecher8462
    @wilsonsebeniecher8462 Před 9 lety

    Excellent - hepled undestand MVVM

  • @Nightkeeper91
    @Nightkeeper91 Před 4 lety

    Thank you very much, this video is really helpful

  • @lucasjohn3014
    @lucasjohn3014 Před 5 lety +1

    No comment , god bless you.

  • @mgeorgescu
    @mgeorgescu Před 9 lety

    Amazing video sir! Looking forward to more videos!

  • @IvanIlev
    @IvanIlev Před 7 lety

    Very helpful, thanks.

  • @ripallad3232
    @ripallad3232 Před 5 lety +1

    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?

  • @hardeepsaggi140
    @hardeepsaggi140 Před 9 lety

    Really Great and simple !!! Cheers

  • @r1pfake521
    @r1pfake521 Před 6 lety

    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?

  • @tindeljean3274
    @tindeljean3274 Před 8 lety

    great explanation man ! thx !!!

  • @_reddyr2530
    @_reddyr2530 Před 4 lety

    You are the best!!! Thank you so much sir..... :)

  • @deliciousm4869
    @deliciousm4869 Před 5 lety +1

    Thank you sir.

  • @chazjamesn
    @chazjamesn Před 9 lety

    Very helpful ThankYou! Are the other videos uploaded? I can't find them thanks.

  • @TheGentleMan_Once
    @TheGentleMan_Once Před rokem

    That's a great vdo.thanks a lot for such a clear 👏 explanation

  • @martinknu80
    @martinknu80 Před 4 lety

    Thank you very helpful regarding MVVM :-)

  • @jaymuraleedharan
    @jaymuraleedharan Před 7 lety

    Great Job.

  • @thenormalchannel4143
    @thenormalchannel4143 Před 3 lety

    Such a good video. Thank you.

  • @roohanasiddiqui2539
    @roohanasiddiqui2539 Před 2 lety

    explained very well

  • @RonyCuzco
    @RonyCuzco Před 7 lety +2

    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.

    • @amarnileshjogoo4237
      @amarnileshjogoo4237 Před 2 lety

      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); }
      }

  • @prettyrose3264
    @prettyrose3264 Před 8 lety

    thanks very much

  • @biplabrout9605
    @biplabrout9605 Před 7 lety

    Very good video for beginner

  • @levonjan3177
    @levonjan3177 Před 7 lety

    Thank you from Armenia ))

  • @WaqasAli-ev7ge
    @WaqasAli-ev7ge Před 6 lety

    Thank for MVVM explanation. Can we use MVVM in asp.net webforms projects?

  • @InshuMussu
    @InshuMussu Před 8 lety

    you are awesome.

  • @devops6697
    @devops6697 Před 6 lety +1

    damn you're good at explaining. of all the videos i've watched

  • @vornraingseyvong5583
    @vornraingseyvong5583 Před 2 lety

    u are the best