Slider.IsMoveToPointEnabled Property

Gets or sets a value that indicates whether the Thumb of a Slider moves immediately to the location of the mouse click that occurs while the mouse pointer pauses on the Slider track.

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

public bool IsMoveToPointEnabled { get; set; }
/** @property */
public boolean get_IsMoveToPointEnabled ()

/** @property */
public void set_IsMoveToPointEnabled (boolean value)

public function get IsMoveToPointEnabled () : boolean

public function set IsMoveToPointEnabled (value : boolean)

<object IsMoveToPointEnabled="bool" .../>

Property Value

true if the Thumb moves immediately to the location of a mouse click; otherwise, false. The default value is false.

Identifier field


Metadata properties set to true


When this property is set to false and a mouse click occurs along the Slider away from the Thumb, the Thumb moves in the direction of the mouse click. Instead of moving immediately to the mouse click location, the Thumb moves a distance that is defined by the Interval property for each mouse click.

The effect of multiple mouse clicks can be emulated by pressing and holding the left mouse button until the Thumb is repositioned to the desired location.

The following example shows how to set the IsMoveToPointEnabled property. For the complete sample, see Slider Sample.

<Slider Name="slider1" Width="100" 
        Orientation="Horizontal" HorizontalAlignment="Left" 
        IsSnapToTickEnabled="True" Minimum="1" Maximum="9" 
        TickPlacement="BottomRight"  TickFrequency="3"
        AutoToolTipPrecision="2" AutoToolTipPlacement="BottomRight"

Slider hslider = new Slider();
hslider.Orientation = Orientation.Horizontal;
hslider.AutoToolTipPlacement =
hslider.AutoToolTipPrecision = 2;
hslider.IsDirectionReversed = true;
hslider.Width = 100;
hslider.IsMoveToPointEnabled = false;
hslider.SelectionStart = 1.1;
hslider.SelectionEnd = 3;
hslider.IsSelectionRangeEnabled = false;
hslider.IsSnapToTickEnabled = false;
hslider.TickFrequency = 3;
hslider.TickPlacement = TickPlacement.Both;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0