PropertyChanged events work with a property !a field (c#

PropertyChanged(this, new PropertyChangedEventArgs(“Age”)) // required by INotifyPropertyChanged

If Age is a field rather than a property in a Model or ViewModel class, then this event firing will fail to have any effect.

Incidentally, event firing and callback happen on the same thread — sequentially, like JTable fireXXX() and unlike invokeLater().

Further, I think the binding system invokes get_Age() and never reads the Age field so even if the field never triggers any event, it will break because initial query-then-display will display an empty string.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s