I'am looking for a implementation of INotifyPropertyChanged for several dozen properties in one data class Class1. I want TwoWay binding to TextBox control per one property. I found this implementation of INotifyPropertyChanged, but I would have to modify Class1 and create fields that are exposed by properties.
Need solution for two main problems:
- I want to do bidning without modyfing
Class1- it should only store data. - Fix the problem with creating fields that are exposed by properties as in linked solution.
Example class Class1:
{
public string Property1 { get; set; }
public string Property2 { get; set; }
public string Property3 { get; set; }
public string Property4 { get; set; }
public string Property5 { get; set; }
public int Property6 { get; set; }
public int Property7 { get; set; }
public int Property8 { get; set; }
public int Property9 { get; set; }
public short Property10 { get; set; }
public short Property11 { get; set; }
public short Property12 { get; set; }
public long Property13 { get; set; }
public long Property14 { get; set; }
public long Property15 { get; set; }
public string Property16 { get; set; }
public string Property17 { get; set; }
public string Property18 { get; set; }
public string Property19 { get; set; }
public string Property20 { get; set; }
public string Property21 { get; set; }
public string Property22 { get; set; }
}