public CommandViewModel() { //构造函数 ValidateUI = new ValidateUserInfo(); List = new ObservableCollection <ValidateUserInfo>(); ResType = new ResTypeModel() { SelectIndex = 0, List = new List <ComplexInfoModel>() { new ComplexInfoModel() { Key = "0", Text = "请选择..." }, new ComplexInfoModel() { Key = "1", Text = "苹果" }, new ComplexInfoModel() { Key = "2", Text = "香蕉" }, new ComplexInfoModel() { Key = "3", Text = "樱桃" } } }; }
public CommandViewModel() { //构造函数 ValidateUI = new ValidateUserInfo(); List = new ObservableCollection <ValidateUserInfo>(); var aResType = new ResTypes(); aResType.List = new List <TestC>() { new TestC() { Key = "a", Text = "A" }, new TestC() { Key = "b", Text = "B" }, new TestC() { Key = "c", Text = "C" } }; aResType.SelectIndex = 0; ResType = aResType; }
public CommandViewModel() { //构造函数 ValidateUI = new ValidateUserInfo(); List = new ObservableCollection <ValidateUserInfo>(); }