This documentation is archived and is not being maintained.

GridSplitter.DragIncrement Property

Gets or sets the minimum distance that a user must drag a mouse to resize rows or columns with a GridSplitter control.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public double DragIncrement { get; set; }
/** @property */
public double get_DragIncrement ()

/** @property */
public void set_DragIncrement (double value)

public function get DragIncrement () : double

public function set DragIncrement (value : double)

<object DragIncrement="double" .../>

Property Value

A double value that represents the minimum distance that a user must use the mouse to drag a GridSplitter to resize rows or columns. The default value is 1.

Identifier field

DragIncrementProperty

Metadata properties set to true

None

The minimum distance that is defined by DragIncrement is reinitialized continually as the user drags the mouse. For example, when you drag the GridSplitter by the DragIncrement amount, the rows or columns are resized. To resize the rows and columns more, you must drag the GridSplitter the same amount. Therefore, changes to column and row sizes that are made by using the mouse or the keyboard to move the GridSplitter are made in multiples of the DragIncrement.

The following example shows how to set the DragIncrement property.

<GridSplitter DragIncrement="10"  Width="5"
              Grid.Column="0" Grid.RowSpan="2"/>

myGridSplitter.DragIncrement = 10;

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
Show: