Appendix B. Content Controls

This appendix summarizes controls that are designed to hold content. They display something that the user should see but should generally not modify.

The following sections very briefly summarize the WPF content controls. They list the controls' most important properties and provide simple XAML examples. For greater detail on the controls, see Chapter 5.

Many of these controls provide decoration for a single child. For example, you can place a single child inside a Border or GroupBox. Remember that this child can be a container such as a Grid or StackPanel, so being able to hold only one child isn't really much of a restriction.

Border

The Border draws a border around or background behind a single child control. The key properties are given in Table B-1.

Table B.1. Key Properties of Border

Property

Purpose

Background

The color used to fill the control's interior

BorderBrush

The color of the control's edge

BorderThickness

The control edge's thickness

CornerRadius

The radius of curvature for the control's corners. Areas outside the curve are transparent so the parent shows through.

BulletDecorator

The BulletDecorator displays a single item and bullet in a bulleted list. The Bullet property defines the bullet. The control's ...

Get WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 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.