--- title: "How to: Customize the Ticks on a Slider" ms.date: "03/30/2017" helpviewer_keywords: - "TickBar [WPF]" - "Slider control [WPF], creating with TickBar" ms.assetid: 4fa694f2-a620-4b15-be78-5f4286f89361 --- # How to: Customize the Ticks on a Slider This example shows how to create a control that has tick marks. ## Example The displays when you set the property to a value other than , which is the default value. The following example shows how to create a with a that displays tick marks. The and properties define the location of the tick marks and the interval between them. When you move the , tooltips display the value of the . The property defines where the tooltips occur. The movements correspond to the location of the tick marks because is set to `true`. The following example shows how to use the property to create tick marks along the at irregular intervals. [!code-xaml[Slider#4](~/samples/snippets/xaml/VS_Snippets_Wpf/Slider/xaml/window1.xaml#4)] ## See also - - - - [How to: Bind a Slider to a Property Value](/previous-versions/dotnet/netframework-3.5/ms788716(v=vs.90))