Edit

Separator

A Separator control draws a line, horizontal or vertical, between items in controls, such as ListBox, Menu, and ToolBar.

A screenshot of WPF separators visually separating controls.

Styles and templates

The Separator control provides styling information through template parts and visual states.

Content property

This control doesn't define a content property.

Parts

This control doesn't define any template parts.

Visual states

The following table lists the visual states for the Separator 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.

See also