WPF and Silverlight Edition Basic Library / Masked Text Box / MaskedTextBox Features / Value / Setting the Value
Setting the Value

The Value property determines the currently visible text. By default the C1MaskedTextBox control starts with its Value not set but you can customize this at design time, in XAML, and in code.

To set the Value property add Value="123" to the <c1:C1MaskedTextBox> tag so that it appears similar to the following:

XAML
Copy Code
<c1:C1MaskedTextBox Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="C1MaskedTextBox1" VerticalAlignment="Top" Width="120" Value="123"></c1:C1MaskedTextBox>