NotifyPropertyChange ?

Posts   
 
    
hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 04-Apr-2010 04:04:13   

Hello!

In another project in my FT gig, we are using WPF and when the EntityClasses are defined, we use this type of property definition... the view objects are being bound to the enitities via the viewmodel. And we want to raise a PropertyChange event when setting a property to update bindings...

 public string CustomerName
    {
        get
        {
            return this.customerNameValue;
        }

        set
        {
            if (value != this.customerNameValue)
            {
                this.customerNameValue = value;
                NotifyPropertyChanged("CustomerName");
            }
        }
    }

Is LLBLGen able to produce these kind of classes that would be used in WPF bindings? Is this it's job?

Thanks Harold

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39869
Joined: 17-Aug-2003
# Posted on: 04-Apr-2010 12:16:40   

this is build in.

Frans Bouma | Lead developer LLBLGen Pro