public override void ViewWillAppear (bool animated) { base.ViewWillAppear(animated); var items = new List<object>(); for(int i = 0;i <= 10;i++) { items.Add (i); } chickenName = new EntryElement("Name Of", null, ""); chickenName.Value = "Big Bird"; rating = new PickerElement("Rating", items.ToArray(), null, this) { Width = 40f, ValueWidth = 202f, // use this to align picker value with other elements, for the life of me I can't find a calculation that automatically does it. Alignment = UITextAlignment.Left }; // set initial rating. rating.Value = "5"; rating.SetSelectedValue(rating.Value); date = new DateTimeElement2("Date", DateTime.Now, this) { Alignment = UITextAlignment.Left, Mode = UIDatePickerMode.Date }; Root = new RootElement("Rate Chicken") { new Section() { chickenName, rating, date } }; }
public DelegateDatePicker(DateTimeElement2 Element) : base(RectangleF.Empty) { element = Element; }
public DelegateDatePicker(DateTimeElement2 Element): base(RectangleF.Empty) { element = Element; }