Slider.TickPlacement property

Applies to Windows and Windows Phone

Gets or sets a value that indicates where to draw tick marks in relation to the track.

Syntax


public TickPlacement TickPlacement { get; set; }


<Slider TickPlacement="tickPlacementMemberName" />

Property value

Type: TickPlacement

An enumeration value that specifies where to draw tick marks in relation to the track. The default is Inline.

Remarks

The drawing of tick marks on a slider depends on both the TickFrequency and TickPlacement properties. In order for tick marks to be shown, you must set the TickFrequency property to a value greater than 0, and the TickPlacement property to a value other than None.

Examples

Here's a slider with its TickFrequency set to 2 and its TickPlacement set to BottomRight.


<Slider x:Name="slider2"  
        Minimum="0" 
        Maximum="10"
        TickFrequency="2"
        TickPlacement="BottomRight"
        ValueChanged="slider2_ValueChanged" />


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Slider
TickFrequency

 

 

Show:
© 2014 Microsoft. All rights reserved.