C# WPF Tutorial #13 - ObservableCollection with ListView

preview_player
Показать описание
Learning how to use ObservableCollection as the ListView's Item source, allowing us to use a single collection in our code and have the UI update itself automatically when the list is updated!

Happy Coding!

Chapters:
0:00 Setup
0:54 ItemsSource Property Binding
1:24 ObservableCollection
3:52 Adding to the Collection
4:22 Deleting from the Collection
7:06 Clearing the Collection
7:22 Recap
7:44 Next Up
Рекомендации по теме
Комментарии
Автор

This was the best WPF Tutorial series I ever watched. Everything was so easy to follow.

Jayammo
Автор

You bro explain like a pro. Very understandable, one of the best tutorials i ever watched. Thanks and please keep up.

isasayin
Автор

literally searched observable collection on your previous list view tutorial, you are such a wise man

mumk
Автор

Just dropping a comment, thanks for the quality posts.

Cahangir
Автор

This whole serie is amazing. Keep up the good work!

philipwiderström
Автор

Using debugger effectively helps a lot for learning, thank you a lot!

berkefekeskin
Автор

You did good job~~! You raised me up in C# world.

재주꾼불당늘보불당개
Автор

🤩🤩 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!! 😄😄

wookyumkim
Автор

BEST Videos! Thank you. They really help!!

yeyulchoi
Автор

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<string> entries = new();

davidjennings
Автор

Great series of tutorials. Thank you! However, I wish you had delved deeper into the delete function. As it is, when you remove an item, it will remove the first item it finds that matches, not necessarily the item you chose. This behavior is different vs. the non-bound version of the code, which removes the item you actually selected, not just an item with a matching name.

rhoward
Автор

Very nice playlist, but I have no clue how I would come up with the idea that "ItemsSource" needs something of type "ObservableCollection<>". This is the first video in this playlist in which it feels like I got "fish" instead of learning to "fish". Anyway, thank you for everything. 🖖

MTEnth
Автор

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.

motivationguru
Автор

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!

h_kings
Автор

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.

El_kammex
Автор

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.

MlodicDeathmetal
Автор

observablecollection = collection + INotifyPropertyChanged?

哭哭熊頭
welcome to shbcf.ru