TickBarPlacement Enum

Definition

Specifies the placement of a TickBar with respect to the Track of a Slider control.

C#
public enum TickBarPlacement
Inheritance
TickBarPlacement

Fields

Name Value Description
Left 0

The tick bar is positioned to the left of the Track of the Slider.

Top 1

The tick bar is positioned above the Track of the Slider.

Right 2

The tick bar is positioned to the right of the Track of the Slider.

Bottom 3

The tick bar is positioned below the Track of the Slider.

Examples

For an example of a TickBarPlacement that is included in the Style of a Slider, see Slider Styles and Templates.

Remarks

The TickBarPlacement enumeration is used to set the TickBar.Placement property. The actual position of a TickBar is defined by the ControlTemplate of a Slider control. The Placement property identifies this position so that the ticks of a TickBar are drawn correctly. The following illustration shows how TickBar controls are drawn when the Placement property is set to Top and Bottom.

TickBar placement

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also