I am trying to utilise the CHANGED event of an EntryElement in Monotouch.Dialog so that I can get the length of any input string, and act on it, once it reaches a certain length, for example
RootElement root = new RootElement (null);
Section pinSection = new Section ("", "Please enter your 6 digit pin");
EntryElement pin = new EntryElement("Enter your pin","","",false);
pin.KeyboardType = UIKeyboardType.NumberPad;
pin.Changed += (object sender, EventArgs e) => {
Console.WriteLine("Pin Changed to {0}, Length: 1}",pin.Value,pin.Value.ToString().Length);
};
The CHANGED event does not fire when the value is updated. It only fires when the user stops editing, and the entry element loses focus.
Is there any way to attach an event so that we can respond to invidual keystroke changes to the entry element value?