This documentation is archived and is not being maintained.
TickPlacement Enumeration
Visual Studio 2008
Namespace:
System.Windows.Controls.Primitives
Assembly: PresentationFramework (in PresentationFramework.dll)
| Member name | Description | |
|---|---|---|
| None | No tick marks appear. | |
| TopLeft | Tick marks appear above the Track for a horizontal Slider, or to the left of the Track for a vertical Slider. | |
| BottomRight | Tick marks appear below the Track for a horizontal Slider, or to the right of the Track for a vertical Slider. | |
| Both | Tick marks appear above and below the Track bar for a horizontal Slider, or to the left and right of the Track for a vertical Slider. |
The TickPlacement enumeration is used to set the TickPlacement property of a Slider.
The following illustration shows a Slider that has tick marks that are located below the Track. In this example, the TickPlacement property is set to BottomRight.
Slider Example

The following example shows how to set the TickPlacement property for a Slider control.
<Slider Width="100" Value="50" Orientation="Horizontal" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Maximum="3" TickPlacement="BottomRight" AutoToolTipPlacement="BottomRight" AutoToolTipPrecision="2" Ticks="0, 1.1, 2.5, 3"/>
More Code
| How to: Customize the Ticks on a Slider | This example shows how to create a Slider control that has tick marks. |
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: