TickPlacement Property

Slider::TickPlacement Property

 

Gets or sets the position of tick marks with respect to the Track of the Slider.

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

public:
[BindableAttribute(true)]
property TickPlacement TickPlacement {
	TickPlacement get();
	void set(TickPlacement value);
}

Property Value

Type: System.Windows.Controls.Primitives::TickPlacement

A TickPlacement value that defines how to position the tick marks in a Slider with respect to the slider bar. The default is None.

The TickPlacement property must be set to a value other than None for tick marks to appear.

The following example shows how to set the TickPlacement property.

No code example is currently available or this language may not be supported.
<Slider Name="slider1" 
        Width="100" 
        Orientation="Horizontal" HorizontalAlignment="Left" 
        IsSnapToTickEnabled="True" Minimum="1" Maximum="20" 
        TickPlacement="Both"  TickFrequency="2"
        AutoToolTipPlacement="BottomRight"/>

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft