0
我有一個反射創建的對話框,如下所示。點擊日期後,彈出窗口會更改形狀並呈現日期選擇器壓扁,請參閱下面的內容。MonoTouch.Dialog:ContentSizeForViewInPopover更改日期
我的課程以下僅供參考。
[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;
}