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.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true, if a user can use a spin editor to select a value; otherwise, false. |
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>
See Also