How do I restrict special characters and character in a Textbox? I'm using this code but I am not restricting special characters and character
code :-
if (!Regex.IsMatch(((Windows.UI.Xaml.Controls.TextBox)sender).Text, @"^\\d*\\.?\\d*$"))
{
// Write Code
}