Tuesday, 12 June 2012

NotifyPropertyWeaver Installation and Example usage :

1.                Install Visual Studio package http://visualstudiogallery.msdn.microsoft.com/bd351303-db8c-4771-9b22-5e51524fccd3
                  Once installed you should see the NotifyPropertyWeaver item under project menu –



2.                Open the silverlight project – Go to above NotifyPropertyWeaver item under project menu and select “Configure” (If not selected.). It will add  copy of NotifyPropertyWeaverMsBuildTask.dll in a Tools directory under root solution. 
3.                Next, wherever you need INotifyPropertyChanged  you just implement the same and rest everything will be taken care by the notifypropertyweaver. 
4.                Created a Sample project attached with this Post. Same sample is also available at sunix site under Files -> Sample Projects. 
5.                You can apply Custom Attributes like - NotifyProperty, NotifyAll, DoNotNotify and DependsOn  to any Class or Property, they are available at WeaverAttribute.cs.

No comments:

Post a Comment