inotifypropertychanged - WPF Are NotifyPropertyChangeds marshalled to the dispatcher? -
if update property throws notifypropertychanged on thread other bound control's dispatcher update forcibly marshalled dispatcher?
backgrounworker.run() => { blah.blahness = 2; // notifies property changed on bw, marshalled dispatcher? }
yes, propertychanged
event automatically marshalled ui dispatcher, don't need use invoke
marshall explicitly.
note true change notifications on scalar properties (i.e. propertychanged
event). collection change notifications (inotifycollectionchanged.collectionchanged
event) don't work way, must raised on ui thread manually. wrote class automatically, can find here.
Comments
Post a Comment