Expand Minimize
This topic has not yet been rated - Rate this topic

TickPlacement Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the position of tick marks in a Slider control with respect to the Track that the control implements.

Namespace:  System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)
public enum TickPlacement
<object property="enumerationMemberName" .../>
Member nameDescription
NoneNo tick marks appear.
TopLeftTick marks appear above the Track for a horizontal Slider, or to the left of the Track for a vertical Slider.
BottomRightTick marks appear below the Track for a horizontal Slider, or to the right of the Track for a vertical Slider.
BothTick 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

Slider illustration

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 SliderThis example shows how to create a Slider control that has tick marks.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.