0
我正在使用BindingContext
生成表並且不希望選擇默認值。MonoTouch.Dialog:No默認值
我的類具有此字段:
[RadioSelection ("Model:")]
public int model = -1;
public IList<string> Model;
它然後被添加到根:
car = new AddCar() {
Model = new List<string>(){"ES 250","ES 300","ES 330","ES 350"}
};
bc = new BindingContext (this, car, "Add Your Vehicle");
this.Root = bc.Root;
然而UI呈現一選定值 「ES 250」,而不是一個空白值: