2011-01-26 113 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 ;-)