Content Index Search
 

SimpleScrollBar

The scroll bar is a simple control that displays a marker on a bar in a position that depends on the Value property. You can set the orientation of the scroll bar in Microsoft® Expression Blend™ by using the Orientation property under Layout in the Properties panel. You can set the Minimum, Maximum, and current Value of the scroll bar under Common Properties in the Properties panel. The current value must be between the minimum and maximum values.

Artboard view: SimpleScrollBar

The Artboard view of a SimpleScrollBar control.

Breaking down the control template

The SimpleScrollBar control template consists of the following items:

Warning Do not rename any element whose name begins with "PART_" because these elements are referred to from the code that implements the control.

Objects view: The basic parts (template) of SimpleScrollBar

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

Property triggers used

Property triggers in the control template are used to make the control react to property changes. You can click the item under Triggers in the Interaction panel to view the properties that are changed when a trigger is active. For example, in the SimpleScrollBar template, when the Orientation property is Horizontal, multiple properties are changed to reflect the new orientation of the progress bar.

Brushes used

The SimpleScrollBar template only uses one system brush resource for the Foreground property. Other brush resources are referenced in the templates that the SimpleScrollBar uses, such as the SimpleRepeatButton, SimpleThumbStyle, and SimpleScrollRepeatButtonStyle templates. You can modify the brushes that these templates use, to change the look of the SimpleScrollBar, or you can create new templates.

Best practices and design guidelines

Try it!