A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to our Microsoft Q&A platform!
The only workarounds that may help achieve your end goal to listen for text input and manually change numbers typed in Arabic to English. This means you can implement a TextChanging event handler and transform the national digits produced by the Arabic keyboard to Latin digits. You can try the following method to detect Arabic numerals to convert them to English.
private string toEnglishNumber(string input)
{
string EnglishNumbers = "";
for (int i = 0; i < input.Length; i++)
{
if (Char.IsDigit(input[i]))
{
EnglishNumbers += char.GetNumericValue(input, i);
}
else
{
EnglishNumbers += input[i].ToString();
}
}
return EnglishNumbers;
}