Number-only TextBox in UWP
5 years ago
Discover two approaches to allow only plain numbers in the UWP TextBox control. Learn how to prevent non-digit input using the BeforeTextChanging event and how to filter non-digit characters using the TextChanging event. These solutions can be extended to support more general numeric input. Check out the article to find out how!