Edit

StatusBar

A StatusBar is a horizontal area at the bottom of a window where an application can display status information.

The following illustration shows an example of a StatusBar.

Screenshot of a StatusBar control showing status information at the bottom of a window.

Styles and templates

This section describes the styles and templates for the StatusBar control. You can modify the default ControlTemplate to give the control a unique appearance. For more information, see What are styles and templates? and How to create a template for a control.

Content property

The StatusBar control uses the Items property as its content property. This property contains the collection of StatusBarItem objects that are displayed in the status bar.

Parts

The StatusBar control does not define any named parts.

Visual states

The following table lists the visual states for the StatusBar control.

VisualState Name VisualStateGroup Name Description
Valid ValidationStates The control is valid and has no validation errors.
InvalidFocused ValidationStates The control has a validation error and has keyboard focus.
InvalidUnfocused ValidationStates The control has a validation error but doesn't have keyboard focus.

StatusBarItem parts

The StatusBarItem control does not define any named parts.

StatusBarItem visual states

The following table lists the visual states for the StatusBarItem control.

VisualState Name VisualStateGroup Name Description
Valid ValidationStates The control is valid and has no validation errors.
InvalidFocused ValidationStates The control has a validation error and has keyboard focus.
InvalidUnfocused ValidationStates The control has a validation error but does not have keyboard focus.

See also