Skip to main content
A newer version of this page is available. .

SpinEdit Class

Represents an editor with spin buttons used to adjust a numerical value.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public class SpinEdit :
    ButtonEdit

Remarks

The SpinEdit class represents a text editor with a pair of spin buttons that end-users can click to adjust a value. Spin buttons are used to increment or decrement the editor’s value displayed in the text edit region.

WPF SpinEdit Control

The spin editor’s value is specified via the SpinEdit.Value property. The editor’s increment value, by which the edit value is changed every time the editor is spun, is specified by the SpinEdit.Increment property.

The editor’s value can be integer or floating-point. Use the SpinEdit.IsFloatValue property to specify the editor’s value type.

The minimum and maximum allowed values are specified by the SpinEdit.MinValue and SpinEdit.MaxValue properties, respectively. Use the SpinEdit.Minimize or SpinEdit.Maximize method to set the editor’s value to the minimum or maximum value, respectively.

Example

<dxe:SpinEdit Increment="0.5" MinValue="0" MaxValue="10" AllowSpinOnMouseWheel="False" IsTextEditable="False" />

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpinEdit class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also