Тёмный

C# WPF Tutorial #13 - ObservableCollection with ListView 

Kampa Plays
Подписаться 6 тыс.
Просмотров 22 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@isasayin3102
@isasayin3102 2 месяца назад
You bro explain like a pro. Very understandable, one of the best tutorials i ever watched. Thanks and please keep up.
@Jayammo2
@Jayammo2 Год назад
This was the best WPF Tutorial series I ever watched. Everything was so easy to follow.
@KampaPlays
@KampaPlays Год назад
Thanks so much, I'm really glad to hear that! I have a lot more topics to cover, let me know if you have any questions or suggestions!
@Jayammo2
@Jayammo2 Год назад
@@KampaPlays Um yeah I think a Navigation video would be great.
@KampaPlays
@KampaPlays Год назад
@@Jayammo2 Great idea, I will work this in, thanks!
@JMCiller
@JMCiller 10 месяцев назад
Fully agree. I did not finish the tutorial and it is the best playlist by far
@berkefekeskin9172
@berkefekeskin9172 6 месяцев назад
Using debugger effectively helps a lot for learning, thank you a lot!
@KampaPlays
@KampaPlays 6 месяцев назад
Great to hear!
@user-tl2nf3oc8m
@user-tl2nf3oc8m Год назад
This whole serie is amazing. Keep up the good work!
@KampaPlays
@KampaPlays Год назад
Thank you so much!! Lots more to do!
@wookyumkim4669
@wookyumkim4669 Год назад
🤩🤩 Yes!! This is what I wanted to know! You always present the core stuff concisely! It seems that I can apply this lesson to my toy project which has DataGrid with ItemSource. The logic and principle may be same with List. ☺☺ Thank you very much as always!! 😄😄
@KampaPlays
@KampaPlays Год назад
Thank you!! You can use List as an ItemSource binding with DataGrid but it will not automatically notify on all collection operations like an ObservableCollection will. You can use ObservableCollection with DataGrid, though!
@Jayammo2
@Jayammo2 Год назад
Thanks!
@KampaPlays
@KampaPlays Год назад
Wow, thank you so much! Really appreciate that.
@user-fh3sr2lr2x
@user-fh3sr2lr2x 11 месяцев назад
You did good job~~! You raised me up in C# world.
@KampaPlays
@KampaPlays 11 месяцев назад
Awesome to hear, thank you.
@yeyulchoi6314
@yeyulchoi6314 Год назад
BEST Videos! Thank you. They really help!!
@KampaPlays
@KampaPlays Год назад
Thanks so much, I'm glad!!
@webdesignsbytom
@webdesignsbytom Год назад
really great series, dont stop
@KampaPlays
@KampaPlays Год назад
Thank you, still more to come!
@h_kings
@h_kings 3 месяца назад
Don't you think about to make a course for Udemy? I'm not english speaker but can understand and you make it so easy to learn the concepts. Btw, thanks so much for this videos!
@thomasaminer
@thomasaminer 3 месяца назад
Thank you!
@davidjennings6293
@davidjennings6293 7 месяцев назад
Love your videos. So far the clearest explanation of data binding, ObservableCollections, etc. that I have found. In this exercise, is there a disadvantage to initializing the collection when it is declared (instead of in the constructor)? private ObservableCollection entries = new();
@KampaPlays
@KampaPlays 7 месяцев назад
Thank you so much, I really appreciate that! In this case, I don't think there are any real disadvantages to doing that. Basically either way, you are creating the collection on class instantiation (generally its safe to assume the constructor will run first, anyway). I do this occasionally, depending on the object's purpose/scope. I wouldn't get into a habit of always or blindly initializing in the declaration though, because often times you will end up creating objects well before you need them, spending memory unnecessarily, and increasing the time it takes to create your class. Creating the objects when you need them (lazy initialization) can increase performance a good bit at scale. Hope this helps!
@motivationguru7155
@motivationguru7155 11 месяцев назад
Thanks for the video. Really helpful. I have a question here we are using binding but we are taking text box entry (That we are adding on button click)from GUI i.e., It we are not running independently right. Please correct me if i am wrong.
@KampaPlays
@KampaPlays 11 месяцев назад
Correct - trying to sprinkle in a bit of functionality over time as to not overwhelm -- developing the UI truly independently would use all bindings, and likely incorporate the MVVM pattern in doing so.
@El_kammex
@El_kammex 10 месяцев назад
I am programing in React a lot and there we have useState hook. UseState automaticlly refresh your view when it has been changed. Obsevarble collection I understand works similar. Correct me if I think wrong.
@KampaPlays
@KampaPlays 9 месяцев назад
Yes! I didn't do any React until I had already worked in WPF, and I thought the same thing when I saw UseState!
@Nbveh01
@Nbveh01 9 месяцев назад
thanks
@KampaPlays
@KampaPlays 9 месяцев назад
You're welcome!
@M3lodicDeathmetal
@M3lodicDeathmetal Год назад
I checked like 3 times that I did it exactly as you, but my ListView stays empty after manually adding items `Entries.Add("Test")` in the Constructor of the binding class.
@KampaPlays
@KampaPlays Год назад
Hm. Make sure you have set your datacontext, InitializeComponent is called first, and double check your spelling/capitalization on your binding. These are common things that might be your issue.
@fooballers7883
@fooballers7883 11 месяцев назад
Thank you....
@KampaPlays
@KampaPlays 11 месяцев назад
Glad to help!