我有一个反射创建的对话框,如下所示。单击日期时,弹出框会更改形状并渲染日期选择器,请参见下文。
我的课程在下面供参考。
[Preserve(AllMembers = true)]
public class EventEntity
{
[Section("Date of Measurement", "")]
[Indexed]
[Date]
public DateTime Date ;
[Section("Measurement Details", "")]
[Caption("Height")]
[Entry(Placeholder= "Centimeters",KeyboardType = UIKeyboardType.PhonePad)]
public string HeightCM ;
[Caption("Weight")]
[Entry(Placeholder= "Kilograms",KeyboardType = UIKeyboardType.PhonePad)]
public string WeightKG ;
[Caption("Head Circumference")]
[Entry(Placeholder = "Centimeters", KeyboardType = UIKeyboardType.PhonePad)]
public string HeadCircumferenceCM;
[Skip]
public int ChildFK ;
[Skip]
[PrimaryKey, AutoIncrement]
public int PK;
}
答案 0 :(得分:0)
如果你为我提供了一个独立的测试用例,我可以调查一下。我从未真正在iPad中使用过MonoTouch.Dialog; - )