C# WPF – INotifyPropertyChanged vs DependencyObject

In WPF for binding model data to UI you can choose DependencyObject or INotifyPropertyChanged with POCO.

I normally selected INotifyPropertyChanged with POCO because of code readability and easy to understand.
Now I have found a useful article about this topic. You can see the details from the following link.

http://kentb.blogspot.com.au/2009/03/view-models-pocos-versus.html

One important thing is that DependencyObject has a relationship with thread affinity. I think that this is big weakness of DependencyObject even though it can bring a little bit of performance benefits.

Advertisements
This entry was posted in .NET, Programming. Bookmark the permalink.

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