Thank you for the code snippet provided.
In order to alter this default behavior, you can utilize the following workaround. When the LostFocus event is raised, you can handle the event by using a check as shown below.
sender, RoutedEventArgs e)
var numeric = sender
I hope this helps.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.