The first TextBox control, which we added to the StackPanel, is the simplest one, and when it is rendered in the UI, it contains empty text. The user can enter any plain text here. You can also specify text from code, by using the Text property, as shown in the second control.
You can also define a range of styles for the text of the TextBox control. As shown in the second control, we specified FontSize, Foreground, FontWeight. You can specify other properties too, as part of any control.
The third one is a ReadOnly textbox, which you can define by setting the IsReadOnly property value to True. When you want to disable a TextBox, set its IsEnabled property to False, as shown in the fourth example.
The fifth example demonstrates how easy it is to define a multiline textbox. Just set its AcceptsReturn property to True and TextWrapping to Wrap. The control will behave like a multiline text editor.