Once the project gets created, follow the mentioned steps to play with some of the TextBox properties:
- Open the MainWindow.xaml page, and replace the default Grid with a StackPanel so that we can add the controls in a stacked fashion.
- Now add five TextBox controls inside the StackPanel, and set various properties, as follows:
<StackPanel Margin="10 10 10 20">
<TextBox Height="30" Margin="10 5"
Text="Hello"/>
<TextBox Text="Hello WPF!"
FontSize="18" Foreground="Blue"
FontWeight="Bold"
Height="30" Margin="10 5"/>
<TextBox Text="This is a 'ReadOnly' TextBox control"
IsReadOnly="True" Height="30" Margin="10 5"/>
<TextBox Text="This is a 'Disabled' TextBox control"
...