Skip to main content
All docs
V22.1

TextEditSettings.AllowSpin Property

Gets or sets whether a user can click spin buttons to select a value. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v22.1.dll

Declaration

public bool AllowSpin { get; set; }

Property Value

Type Default Description
Boolean

true

true, if a user can use a spin editor to select a value; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowSpin
TokenEditorBehavior
.TokenEditSettings.AllowSpin

Remarks

The following code sample disables a GridControl’s TextEdit spin value:

<Window ... 
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
    <StackPanel>
        <dxg:GridControl x:Name="Grid" ItemsSource="{Binding}">
            <dxg:GridColumn FieldName="Value">
                <dxg:GridColumn.EditSettings>
                    <dxe:SpinEditSettings AllowSpin="False" />
                </dxg:GridColumn.EditSettings>
            </dxg:GridColumn>
        </dxg:GridControl>
    </StackPanel>
</Window>

TextEditSettings - AllowSpin

See Also