C# WPF Tutorial #13 - ObservableCollection with ListView

  Рет қаралды 25,226

Kampa Plays

Kampa Plays

Күн бұрын

Пікірлер: 36
@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 Жыл бұрын
Fully agree. I did not finish the tutorial and it is the best playlist by far
@mumk
@mumk Ай бұрын
literally searched observable collection on your previous list view tutorial, you are such a wise man
@isasayin3102
@isasayin3102 5 ай бұрын
You bro explain like a pro. Very understandable, one of the best tutorials i ever watched. Thanks and please keep up.
@berkefekeskin9172
@berkefekeskin9172 9 ай бұрын
Using debugger effectively helps a lot for learning, thank you a lot!
@KampaPlays
@KampaPlays 9 ай бұрын
Great to hear!
@Jayammo2
@Jayammo2 Жыл бұрын
Thanks!
@KampaPlays
@KampaPlays Жыл бұрын
Wow, thank you so much! Really appreciate that.
@philipwiderström
@philipwiderström Жыл бұрын
This whole serie is amazing. Keep up the good work!
@KampaPlays
@KampaPlays Жыл бұрын
Thank you so much!! Lots more to do!
@재주꾼불당늘보불당개
@재주꾼불당늘보불당개 Жыл бұрын
You did good job~~! You raised me up in C# world.
@KampaPlays
@KampaPlays Жыл бұрын
Awesome to hear, thank you.
@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!
@yeyulchoi6314
@yeyulchoi6314 Жыл бұрын
BEST Videos! Thank you. They really help!!
@KampaPlays
@KampaPlays Жыл бұрын
Thanks so much, I'm glad!!
@davidjennings6293
@davidjennings6293 10 ай бұрын
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 10 ай бұрын
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!
@webdesignsbytom
@webdesignsbytom Жыл бұрын
really great series, dont stop
@KampaPlays
@KampaPlays Жыл бұрын
Thank you, still more to come!
@El_kammex
@El_kammex Жыл бұрын
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 Жыл бұрын
Yes! I didn't do any React until I had already worked in WPF, and I thought the same thing when I saw UseState!
@motivationguru7155
@motivationguru7155 Жыл бұрын
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 Жыл бұрын
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.
@thomasaminer
@thomasaminer 5 ай бұрын
Thank you!
@Nbveh01
@Nbveh01 11 ай бұрын
thanks
@KampaPlays
@KampaPlays 11 ай бұрын
You're welcome!
@h_kings
@h_kings 6 ай бұрын
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!
@哭哭熊頭
@哭哭熊頭 Ай бұрын
observablecollection = collection + INotifyPropertyChanged?
@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 Жыл бұрын
Thank you....
@KampaPlays
@KampaPlays Жыл бұрын
Glad to help!
C# WPF Tutorial #14 - StackPanel
5:54
Kampa Plays
Рет қаралды 16 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 63 МЛН
C# WPF Tutorial #12 - ListView
13:24
Kampa Plays
Рет қаралды 32 М.
The Basics of Data Binding in WPF
20:53
Tactic Devs
Рет қаралды 48 М.
Commands In WPF
20:34
DotNetSkoool
Рет қаралды 77 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 105 МЛН
C#/WPF - Learning the DataGrid
1:42:38
Kevin Bost
Рет қаралды 12 М.
C# WPF Tutorial #23 - Using ViewModels in MVVM
15:02
Kampa Plays
Рет қаралды 28 М.
Data Filtering in a ListView [WPF]
26:51
Tactic Devs
Рет қаралды 11 М.
C# WPF Tutorial #20 - Reusable Style Resources
11:11
Kampa Plays
Рет қаралды 17 М.
C# WPF and GUI - Pages and Navigation
7:48
Ilford Grammar School
Рет қаралды 284 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39