I need to enable the user to enter negative values in my xamarin application entry fields fro IOS project. Currently i use the following custom renderer to use the NumbersAndPunctuation keypad. But i do not want an alphanumeric keypad for entrering only numeric inputs. Is there a better solution for the same?
public class NumericKeypadRenderer: EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control == null) return;
Control.KeyboardType = UIKeyboardType.NumbersAndPunctuation;
}
}
Is there a way to just add a minus button to the numeric keypad in IOS?