Registering for a PropertyChangeNotification

1 posts, 0 answers
  1. JAS J
    JAS J avatar
    39 posts
    Member since:
    May 2010

    Posted 09 Aug 2011 Link to this post

    Hi all!

    I am trying to register for propertyChange notifications and am getting rather confused about what I need to do. Here is my situation

    class Customer:ViewModelBase{
    {

    private bool _valid;

     

    public bool Valid
    {
    get {  return _valid; }

     

    set { _valid = value; OnPropertyChanged("Valid");}

     

    }

    }

    // In main program
    List<Customer> customers;
    // Over here I want to register to receive notifications every time Valid is changed for any customer in customers.

    It seems like this should be straight forward... Perhaps just been working too long today..

    thanks in advance
    Jas



Back to Top