.net - What exactly WPF runtime does after raising the PropertyChanged event of INotifyPropertyChanged interface -
i have been asked question in interview
"when want reflect changed value of propery on view when updates binded propery in backend in viewmodel, raise event given implementing inofitypropertychanged interface."
"so, question dont bind event handler propertychanged event, wpf run time it. so, happens right after raising propertychanged event viewmodel.
in wpf, dispatcher handles most(maybe all) ui work items in loops, queues. different work items have different priorities dispatcher can handle items high priority in time.
raising property changed event transfer data binding task , put in dispatcher's queue databinding priority. dispatcher manage item's position inside queue , execute it, update data binding here, @ appropriate time.
Comments
Post a Comment