Hello
If you place your cursor at the beginning of the field and hold down the space bar your text would appear spaced out and the font changes.
Steps:
<Window x:Class="IndexOutOfRangeExceptionMaskedNumeric.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:a="clr-namespace:IndexOutOfRangeExceptionMaskedNumeric"
xmlns:maskedInput="clr-namespace:Telerik.Windows.Controls.MaskedInput;assembly=Telerik.Windows.Controls.Input"
xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style x:Key="RadMaskedInputBaseStyle" TargetType="telerikInput:RadMaskedInputBase">
<Setter Property="TextMode" Value="PlainText"/>
<Setter Property="IsClearButtonVisible" Value="False"/>
<Setter Property="Placeholder" Value="_"/>
<Setter Property="Mask" Value=""/>
<Setter Property="UpdateValueEvent" Value="PropertyChanged"/>
</Style>
</Window.Resources>
<StackPanel>
<telerikInput:RadMaskedTextInput x:Name="edtTextBoxControl" Style="{StaticResource RadMaskedInputBaseStyle}"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Value="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
/>
<TextBox Text="{Binding Value}"/>
</StackPanel>
</Window>
Thank you
If you place your cursor at the beginning of the field and hold down the space bar your text would appear spaced out and the font changes.
Steps:
- Place your cusor at the beginning of the name field
- Hold down and press the space bar
- Notice text has space between them and the font text changes
- See attached screenshot
<Window x:Class="IndexOutOfRangeExceptionMaskedNumeric.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:a="clr-namespace:IndexOutOfRangeExceptionMaskedNumeric"
xmlns:maskedInput="clr-namespace:Telerik.Windows.Controls.MaskedInput;assembly=Telerik.Windows.Controls.Input"
xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style x:Key="RadMaskedInputBaseStyle" TargetType="telerikInput:RadMaskedInputBase">
<Setter Property="TextMode" Value="PlainText"/>
<Setter Property="IsClearButtonVisible" Value="False"/>
<Setter Property="Placeholder" Value="_"/>
<Setter Property="Mask" Value=""/>
<Setter Property="UpdateValueEvent" Value="PropertyChanged"/>
</Style>
</Window.Resources>
<StackPanel>
<telerikInput:RadMaskedTextInput x:Name="edtTextBoxControl" Style="{StaticResource RadMaskedInputBaseStyle}"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Value="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
/>
<TextBox Text="{Binding Value}"/>
</StackPanel>
</Window>
Thank you