2011-01-26 101 views
0

我有一个反射创建的对话框,如下所示。点击日期后,弹出窗口会更改形状并呈现日期选择器压扁,请参阅下面的内容。MonoTouch.Dialog:ContentSizeForViewInPopover更改日期

我的课程以下仅供参考。

enter image description here

enter image description here

[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

如果你给我提供一个自包含的测试情况下,我可以看着调试。我从来没有真正使用过iPad中的MonoTouch.Dialog ;-)