views:

29

answers:

1

Is it possible to have the proxy classes that are generated when setting a service reference implement INotifyPropertyChanged?

In this case it's a silverlight app referencing a WCF service?

Update:

The SlSvcUtil.exe commandline utility is part of the silverlight SDK installed {Program Files}\Microsoft SDKs\Silverlight\v4.0\Tools will generate the classes with an INotifyPropertyChanged implementation.

I'll leave this question up, as I live in hope that someone will say this is possible from Visual Studio without haing to launch an external tool.

+1  A: 

Proxy classes do not implement that interface, only DataContracts do. If you open .svcmap file generated by adding service reference in XML viewer you can change EnableDataBinding element to true and update service reference from VS. I thought that true is default value and you have to manually changed it if you don't want to use INotifyPropertyChanged. What is so specific in your service?

Ladislav Mrnka