c# - How best to extend a partial class for INotifyPropertyChanged? -
i have simple class defined third party. class located in separate assembly user interface , defined as:
public partial class view_consultant { private int _id; public virtual int id { { return this._id; } set { this._id = value; } } private int _office_recid; public virtual int office_recid { { return this._office_recid; } set { this._office_recid = value; } } .........................................
in mvvm fashion, have need bind properties of class user interface, need implement inotifypropertychanged.
do need create class in user interface assembly inherit view_consultant, or there better way? best way this?
note: view_consultant built third party tool. manual change file not kept between builds.
since properties defined (and in different assembly), partial
keyword doesn't buy here.
however, because properties virtual
can derive class , override them, including inpc in new properties.
Comments
Post a Comment