C# WPF Tutorial #23 - Using ViewModels in MVVM

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 46

  • @volkangundogdu1008
    @volkangundogdu1008 Год назад +8

    Thanks!

    • @KampaPlays
      @KampaPlays  Год назад +1

      Thanks so much, really appreciate that!!!

  • @coldwolf5050
    @coldwolf5050 4 месяца назад +1

    As someone also coming from asking GPT, this video nails it. Nicely done!

  • @gayatrik9084
    @gayatrik9084 4 месяца назад +2

    Thank you for being so generous with your time and sharing your knowledge

  • @PhilipHenningD
    @PhilipHenningD Месяц назад +1

    Thank you for these videos!!
    I've generally been watching them once through and then playing back as I code along.. however this video is going to take a few re-watches I think.
    Massive thumbs up!! :-)
    Many thanks again, Phil

  • @pierrestcergues
    @pierrestcergues Год назад +5

    Your tutorials are a pure gift! thanks!

  • @אלוןאדר
    @אלוןאדר Год назад +4

    Great tutorial.
    I learned new features on WPF.
    Thanks.

  • @mumk
    @mumk Месяц назад

    The sound quality of this tutorial was lit 🔥

  • @בןמשה-ט3ע
    @בןמשה-ט3ע 4 месяца назад +1

    bro , with all the questions ive asked chat gpt about this , this video is more comprihensive and more comprihesible.. mabe they wont replace us afterall. greaeat video man

  • @robinheyer708
    @robinheyer708 Год назад +3

    It's almost disappointing how straightforward this is after getting worked up about "the unknown" :P

    • @KampaPlays
      @KampaPlays  Год назад +4

      🤣Yes!! So many times our worst enemy in programming is over-engineering and over-complication!

  • @rahulgoutham7102
    @rahulgoutham7102 Год назад +2

    Very well explained. Thanks a ton.

  • @wookyumkim4669
    @wookyumkim4669 Год назад +3

    Finally!! I have reached to this video! 🤣🤣 I'm so glad that you are presenting this mvvm concept with datagrid example. 😊😊 Thank you so much Kampa! 😄😄

  • @artemky3bmu45
    @artemky3bmu45 Месяц назад

    Thank you for this lesson!!!

  • @artemky3bmu45
    @artemky3bmu45 Месяц назад

    Thank you for your lessons

  • @thomasaminer
    @thomasaminer 4 месяца назад

    Thank you, a perfect video!

  • @Stars.Stripes.andVan
    @Stars.Stripes.andVan Год назад +2

    Great video as usual! I didn't know that we don't have to implement INotifyPropertyChanged for ObservableCollection Lol. Thanks for making me realize that my knowledge of WPF is still very limited.😆

    • @KampaPlays
      @KampaPlays  Год назад +2

      I understand that, it's a great framework, but its not always 100% intuitive! 😂

  • @kushaljain-m5e
    @kushaljain-m5e 2 месяца назад

    Nice easy to understands

  • @윤태웅-i7n
    @윤태웅-i7n 6 месяцев назад

    Thank you for the video!

  • @kojhkimo
    @kojhkimo Год назад +1

    Amazing!!

  • @mythmaker6155
    @mythmaker6155 Год назад +1

    Great tutorial. i finished all the video from playlist. can tell how many video left? and when you are going to upload again?

    • @KampaPlays
      @KampaPlays  Год назад +5

      Thank you and thanks for watching! I'm not exactly sure, maybe 5-10? I'm trying to release 1 per week, but work is very busy right now, so occasionally I fall behind. Should be another coming out this week though.

  • @thushanshanilka3251
    @thushanshanilka3251 Год назад +3

    Great tutorial series. Only problem is having to wait too long for the next video.

    • @KampaPlays
      @KampaPlays  Год назад +1

      Thanks so much! Maybe one day I'll have time to up the release tempo!

    • @semautomacao991
      @semautomacao991 Год назад +1

      Start with a tip😋

  • @The1Wolfcast
    @The1Wolfcast 6 месяцев назад +1

    Can't believe I struggled with understand MVVM in the past. I am more confused how every video in this playlist worked without error every time??!?!

  • @JuvilleBeats
    @JuvilleBeats 2 месяца назад

    I think I understand the basic structure of MVVM but one thing bugs me for a long time and that's the fact that one still has to refer to the objects and propertiers but in this case through the bindings. What's the point of that? How is the UI decoupled from the Code in that case? How can a designer make the UI without knowing how the objects and properties are named? I understand that both are separately testable but that's all? Any hints and tipps from anyone are greatly appreciated!

  • @vitalijgrabovan2061
    @vitalijgrabovan2061 8 месяцев назад

    Hello Kampa, as always the best video about WPF that I have seen so far - and I have seen them alot !!! Any idea why intellisense is not recommending properties in the selection list when you are typing them in the XAML window ? I saw in some videos tha other people dont have this problem. I tired everything and cant get it working. Thx

    • @KampaPlays
      @KampaPlays  7 месяцев назад

      Thanks so much! Sometimes the XAML designer gets hosed up for some reason - I have noticed this at times. Usually a clean/build or a VS restart will fix it. It also could not be giving you specific properties due to namespace/includes not being listed correctly or built. I hope it works for you!

  • @priyankaabbineni4231
    @priyankaabbineni4231 Год назад +1

    Pls do a video on treeview control in MVVm

  • @dakloafitz6347
    @dakloafitz6347 Год назад +2

    Uhh nice!! MVVM!! love it :D
    I just startet playing around with MVVM a few days ago.
    The only part i´m not getting is, how do i get data from one viewmodel to the other?
    So lets say the first view is the inventory view like you´ve just drawn, the second one is e.g. a details view for one specific item. So i need the have access to the same ObservableCollection as in the first view.
    Hope you´ll get to that soon :)
    Thanks for ur videos, they have helped me a lot :)

    • @KampaPlays
      @KampaPlays  Год назад +1

      Thanks!
      So one easy way to do what you are asking is to create the second viewmodel in the first wherever you are opening your new window, and pass it to the new window itself.
      Something like:
      ViewModel1:
      void ShowDetails()
      vm2 = new DetailsVM();
      view2 = new DetailsView(vm2)
      This way you can flow data (or references to data) down to your children/subcomponents from where they originate. Things stay encapsulated nicely this way rather than using globals or some other static method to pass the data around.

  • @reyaadelkomy8046
    @reyaadelkomy8046 Год назад +1

    Really create a tutorial and create job.

  • @dariostromajer1625
    @dariostromajer1625 Год назад

    new video when??