Content Index Search
 

SimpleExpander

The expander is a headered content control that displays both a header and a collapsible window, which displays content. You can title an expander in Microsoft® Expression Blend™ by modifying the Header property. You can place content in an expander by double-clicking the expander and then drawing an element into it. If you want to place multiple elements into an expander, you need to first add in a layout panel such as a Grid or Canvas. An expander also can display text by default; you can edit the text by right-clicking the expander, and then clicking Edit Text. To view the expander on the artboard while it is expanded, you can right-click the expander under Objects and Timeline, and then click Expand Expander.

Artboard view: SimpleExpander

The artboard view of a SimpleExpander control.

Breaking down the control template

The SimpleExpander control template consists of the following items:

Objects view: The basic parts (template) of SimpleExpander

Objects view: The basic parts (template) of a SimpleExpander control.

Property triggers used

Property triggers in the control template are used to make the control react to property changes. You can click the items under Triggers in the Interaction panel to view the properties that are changed when a trigger is active. For example, in the SimpleExpander template, when the IsExpanded property becomes True, the ExpandSite area becomes visible.

Brushes used

The following brush resources in the SimpleStyles.xaml resource dictionary are used by the SimpleExpander template:

Best practices and design guidelines

Try it!