Represents a control that draws a set of tick marks for a Slider control.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The control draws tick marks that have a width of one pixel. You can define the location of the tick marks by specifying a repeating interval or a series of explicit points.
Slider with a TickBar
The and Slider controls both contain properties that perform the same function. The following table shows the properties and the corresponding Slider properties to which they are bound. The properties take precedence when Slider and properties that are related are both specified.
Related TickBar and Slider Properties
This example shows how to create a Slider control that has tick marks.
The following example shows how to create a Slider with a that displays tick marks. The TickPlacement and TickFrequency properties define the location of the tick marks and the interval between them. When you move the Thumb, tooltips display the value of the Slider. The AutoToolTipPlacement property defines where the tooltips occur. The Thumb movements correspond to the location of the tick marks because IsSnapToTickEnabled is set to true.
For the complete sample, see Slider with Data Binding Sample.
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.