protected void SetIsNumeric() { try { numericBehavior = Element.Behaviors.Where(x => x.GetType() == typeof(NumericEntryBehavior)).FirstOrDefault() as NumericEntryBehavior; if (numericBehavior != null) { Control.ShouldChangeCharacters = HandleNumericsSchemeGambi; Control.KeyboardType = UIKeyboardType.NumberPad; } } catch (System.Exception) { } }
public NumericEntryBehaviorListener(NumericEntryBehavior numericBehavior) { NumericBehavior = numericBehavior; }