TickBarPlacement Enumeration

 

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

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public enum TickBarPlacement

Member nameDescription
Bottom

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

Left

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

Right

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

Top

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

The TickBarPlacement enumeration is used to set the Placement property of a TickBar. 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

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

.NET Framework
Available since 3.0
Return to top
Show: