绑定问题,在线求解partial class A:UserControl{public BaseData fBaseDatapublic A(){ this.fBaseDatan
绑定问题,在线求解 partial class A:UserControl{ public BaseData fBaseData; public A(){ this.fBaseData=new BaseData{X=22.0};} } class BaseData{ public double X{get;set;} }
<myControls:a fBaseData={Binding Property}/> [解决办法] partial class A:UserControl{ public BaseData fBaseData; public BaseData BaseData{get{return this.fBaseData;}set{this.fBaseData=value;}} public A(){ this.fBaseData=new BaseData{X=22.0};} }