I have a UI that will set the .Value property of a StyledStringElement with
the ValueChanged event from the UIDatePicker contained in the DateElement.
The following is what I have, but once I set
the ValueChanged event, i receive an "Object reference not set to an
instance of an object" at runtime.
For example:
var sseValueToChange = new StyledStringElement("Date: ", "YY/YY/YYYY",
UITableViewCellStyle.Value2);
var dateValue = new DateElement("Select Date", DateTime.Today);
var dpDateValue = new UIDatePicker();
dpDateValue = dateValue.datePicker;
dpDateValue.ValueChanged += (sender, e) =>
{
alert.Title = "Change";
alert.AddButton("OK");
alert.Show();
};
Im pretty sure I totally don't get it... but if someone could give me a
helpful push in the right direction so that I can get, Id very much
appreciate it.
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/MonoTouch-Dialog-Help-Needed-how-to-update-StyledStringElement-with-ValueChange-from-DateElement-tp4330795p4330795.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch