#539 – Adding Text-Based Elements in Blend
April 18, 2012 1 Comment
You can add text-based controls to your user interface by clicking on one of the related icons on the tools panel in Blend.
If you left-click and hold on the TextBlock icon on the tools panel, or right-click, you’ll see a series of controls that you can insert by clicking on the icon at this location in the tools panel.
- TextBlock – Displays a small amount of text. Similar to Label, but more lightweight (e.g. can’t customize with templates)
- TextBox – Displays some user-editable text
- RichTextBox – Displays user-editable text and allows for more rich formatting
- PasswordBox – Allows user to enter a password, hiding the characters entered
- Label – Displays a small amount of text
- FlowDocumentScrollViewer – Host a FlowDocument to display an entire document, with support for scrolling
Select the control from this list that you want and then double-click the icon on the tools panel to insert an instance into your user interface.