Hi George,
Greetings from Syncfusion.
We have checked your requirement in SfTextBoxExt. Currently we don’t have a direct support for achieving your requirement. But we have achieved your requirement in SfTextBoxExt by using TextChanged event with initially assigned the predefined hint character as per in below code snippet,
Code Snippet [XAML]
|
<editors:SfTextBoxExt x:Name="textBox"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="400"
MaxLength="16"
TextChanged="SfTextBoxExt_TextChanged"/> |
We have prepared this sample in the case of entering the Debit card number. Hence, we have restricted length of the text by using MaxLength.
Code Snippet [C#]:
|
private void SfTextBoxExt_TextChanged(object sender, TextChangedEventArgs e)
{
if (maskTextCount >= textBox.Text.Length)
{
textBox.Text = originalText.Substring(originalText.Length - textBox.Text.Length);
}
textBox.CaretIndex = textBox.Text.Length;
} |