25 May, 2011

WP7/7.1: Where is INotifiyPropertyChanging defined?

Given the new ability (in 7.1 SDK) to create a local database in a WP7 application, I today set out to create such for proper relational storage.

According to samples and documentation you should support INotifyPropertyChanged as well as INotifyPropertyChanging. The first is easy to find, but the latter is not found where it should be according to documentation. According to documentation, the INofityPropertyChanging interface is found in System.dll, but alas that is not the case!

image

You will need to find (and thus reference) this in a new assembly: mscorlib.Extensions.

image

Who should have known… ;-)

Update (30.05.2011): The mscorlib.Extensions.dll is found here:
’C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\mscorlib.Extensions.dll’

StackOverflow Tags:

5 comments:

Anonymous said...

that's crazy...

Anonymous said...

More info here...

http://nicksnettravels.builttoroam.com/post/2011/09/04/Windows-Phone-LINQ-to-SQL-and-the-INotifyPropertyChanged-and-INotifyPropertyChanging-Interfaces.aspx

Johnny said...

woah. my old 7.0 projects just missed this one. thank you

Unknown said...

I got stuck on this problem. I was wondering how they missed this

Shrirang Desai said...

where to find this file?

InRiver: Not loading your extensions?

(You really need to in the loop to appreciate the issue this post addresses). Man, I've been fighting this problem for hours before I ...