The first time you add a person, your backing field is null and therefore, you add null. After adding the first null element to the collection, you finally instantiate the backing field. That's why it works after the first time
This video helped me so much! I could not at all figure out how the MVVM pattern is supposed to work at all no matter how much I tried to search about it, but with this video everything made so much sense and it finally stopped seeming like some sort of a thing that I'd never understand I love how in the end you summarized how each part that we programmed made up the MVVM structure Thanks a lot!!! 😁
This was really helpful and I understood most of it . I have one question as a beginner, why didn't we use the private field "person" on the mainVM class? we used TargetPerson instead when we added the TargetPerson to the Collection in the AddPerson method .. just asking for clarification. thank you for your videos!!
Hello.. thanks for the interest... There is no specific reason why Target person was used. At the end, Target person only returns the private field "person".. We can assign any of the two. It makes no difference..
@@MouseEvents Beautiful. One of the most useful videos elaborating MVVM in the easiest way. Would be super useful if there is a documentation to utilize everything on Haley.
Please share your thoughts on how to improve this video.. If you need me to prepare videos on some specific topics, please share suggestions...
The first time you add a person, your backing field is null and therefore, you add null. After adding the first null element to the collection, you finally instantiate the backing field. That's why it works after the first time
This video helped me so much! I could not at all figure out how the MVVM pattern is supposed to work at all no matter how much I tried to search about it, but with this video everything made so much sense and it finally stopped seeming like some sort of a thing that I'd never understand
I love how in the end you summarized how each part that we programmed made up the MVVM structure
Thanks a lot!!! 😁
Thank you for the detailed comment and support...
Thanks for video.
Such a convoluted way of doing things. I would never use MVVM.
Thanks a ton.Please make more videos on WPF MVVM..
Also a video on WPF developer interview questions please?
Very good session, thanks for sharing!!!
thanks a lot, great help for starters.
Thank you for this awesome tutorial
What did you change at 35:38, I'm having the same problem, the list view is not getting updated. Only Hyphens.
Added a break point and checked the execution
Thank you 👍
Excelente....muchas gracias
This was really helpful and I understood most of it .
I have one question as a beginner, why didn't we use the private field "person" on the mainVM class? we used TargetPerson instead when we added the TargetPerson to the Collection in the AddPerson method .. just asking for clarification. thank you for your videos!!
Hello.. thanks for the interest...
There is no specific reason why Target person was used. At the end, Target person only returns the private field "person".. We can assign any of the two. It makes no difference..
I couldn't find a documentation website for Haley Model. Is there any?
I'm working on a website but not published yet.. Will share soon..
@@MouseEvents Beautiful. One of the most useful videos elaborating MVVM in the easiest way. Would be super useful if there is a documentation to utilize everything on Haley.
more on haley mvvm please.
In your Gitrepo some files are missing
Which files?!
Tamil
Tamil