You should use OnPropertyChanged(nameof(FirstName)) instead of OnPropertyChanged("FirstName"), so whenever you rename the FirstName property, the other occurrences will be automatically renamed (or you get a compiler error to indicate that they haven't been).
if you want to go a step further you can use the atttribute [callerMemberName] on argument property of onProprertyChanged and just pass the default as null.and you can use propertychanged anywhere without parameters
I am a bit confused. Once you have set binding property Mode = TwoWay it should occur automatically UI -> Model and back Model -> UI. Why you have to implement this interface in order to get this behaviour? Also, who subscribes to this event and what are the event handlers?
Hi, I didn't get to the end of the video series, but I couldn't see if you have a tutorial on simple data queries from SQL table, how to do that? I mean not the data bindingof one table, but manipulating data in multiple tables, eg. from a simple form with select, insert and update queries. In the old, windows forms environment it was really difficult, I'm hoping they made it easier. Thank you.
Hi. Your example works, but I don't understand why. Why PropertyChanged is not null? Where some method suscribes to it? Where this assignation happens: PropertyChanged+= SomeMethod; ? Thanks
I want to open Excel sheet from a button and edit that Excel sheet and save this modifications. Plz if you guide me for that it'll really help me alot.
Could you guide me is it code first or database. I am trying to do by doing database first now i donot know how to update database. I think I did some mistake.
same thing i can achieved using only data binding then why i need INotifychanged interface. as you explain in the data binding video Target property got changed by changing the source property. Please clarify this.
You should use OnPropertyChanged(nameof(FirstName)) instead of OnPropertyChanged("FirstName"), so whenever you rename the FirstName property, the other occurrences will be automatically renamed (or you get a compiler error to indicate that they haven't been).
if you want to go a step further you can use the atttribute [callerMemberName] on argument property of onProprertyChanged and just pass the default as null.and you can use propertychanged anywhere without parameters
I am a bit confused. Once you have set binding property Mode = TwoWay it should occur automatically UI -> Model and back Model -> UI. Why you have to implement this interface in order to get this behaviour? Also, who subscribes to this event and what are the event handlers?
Hi, I didn't get to the end of the video series, but I couldn't see if you have a tutorial on simple data queries from SQL table, how to do that? I mean not the data bindingof one table, but manipulating data in multiple tables, eg. from a simple form with select, insert and update queries.
In the old, windows forms environment it was really difficult, I'm hoping they made it easier. Thank you.
You made it easy,, Thanks
Great video. Thanks a lot
When and how the PropertyChanged event is initialize?
We need not add UpdateSoruceTrigger property in the view for the text boxes?
Great explanation ! Thank you
Thank you so much for this video
I understand that new PropertyChangedEventArgs(....) raise a PropertyChanged event, who is subscribed to this event? The UI??
Yes. Or to be more precise, the binding of the Text property is subscribed to the event.
Hi. Your example works, but I don't understand why. Why PropertyChanged is not null? Where some method suscribes to it? Where this assignation happens: PropertyChanged+= SomeMethod; ? Thanks
skipped the actual INotifyPropertyChanged interface altogether, would hv been better to explain how it actually works
thank you so much for your video tutorials
superb explanation
Can we bind multiple object in datacontex,
Linke person, studen, etc....
you can but you have to do it in xaml code. If you will try to do it from code behind file datacontext will be set to null.
Thank you so very much for this video!
I want to open Excel sheet from a button and edit that Excel sheet and save this modifications. Plz if you guide me for that it'll really help me alot.
Could you guide me is it code first or database. I am trying to do by doing database first now i donot know how to update database. I think I did some mistake.
Great tutorial, thanks :)
Even if OnPropertyChanged("FirstName") and OnPropertyChanged("LastName") statements are removed, the application will work the same.
If INotifyPropertyChanged can provide change notification to UI for simple property, why do we need dependency property?
When implementing INotifyPropertyChanged, you indeed do not need dependency properties. It's a different way.
where i can get code of this video
Why not call ontextchange event in textbox and update the full name textbox.
same thing i can achieved using only data binding then why i need INotifychanged interface. as you explain in the data binding video Target property got changed by changing the source property. Please clarify this.
Suppose somewhere the source property got changed in business logic, then it will not reflect on UI without using INotifyPropertyCHanged.
thank you!!
hy, FullName should have only Get no setter
Thank you so much
can you make dependency injection video?
Hello DotNetSkool Guru ...Can u pls upload the video on how to make an custom control in WPF.....
is he the guy from bestdotnettraining chanel??
No.. Independent learner..
Thanks master ^_^
It reads Dot New School