I am trying to write an Entry that will allow a user to enter only whole numbers greater then 0. Anything I tried is not working or working partially or acting strange (for example after pressing a dot then enter two numbers, the second one goes before the first one). I tried to do some "magic" in the TextChanged event without any luck and in Unfocused event. Any idea how this should be done? I need this for Android only, but it is welcome for iOS, too.
thnx
You can add a custom behavior in entry to allow only whole numbers. If any other character is pressed from keyboard, it will get ignored.
Here is a sample example.
You can play around with the conditions to allow special characters like dot or comma.