Displaying Text Messages with the Label Control

The Label control shows a text message, as in the following code example:

<Label Name="Label1" Content="A sample value"/>

WPF offers the TextBlock control that provides deeper customizations features for text, so you should use the one covered in more detail later in this chapter.

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.