Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

16. WPF Controls > Headered Content Controls

Headered Content Controls

Another important branch of the content control class hierarchy is the controls that descend from HeaderedContentControl. Headered content controls are controls that have both a single item of content, and a single header. One of the cool things about headered content controls is that, like the content itself, the header can be any object, including, for example, an Image or a panel that itself contains multiple elements.

image
image

Put on Your Thinking Hat

image

Can you re-create the example window? Here are some hints:

• The layout root is a two-column Grid.

• The two Expander controls are in a StackPanel in the right column of the Grid.

• The first Expander contains a set of Label controls inside a StackPanel.

• The second Expander (its Header is 2) contains a ScrollViewer. The ScrollViewer contains a StackPanel.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint