syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-integer-textbox
syncfusion-wpf-integer-textbox
VerifiedComprehensive guide for implementing Syncfusion WPF IntegerTextBox control for integer value input with validation, formatting, and customization. Use this skill when implementing integer input controls, numeric validation for integers, or integer value entry in WPF. Covers integer data entry forms, min/max value restrictions, number formatting with culture support, integer value scrolling, range adorner progress visualization, and integer-specific input control implementation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.0 KB |
| references/appearance-customization.md | markdown | 1.6 KB |
| references/formatting-culture.md | markdown | 1.9 KB |
| references/getting-started.md | markdown | 1.5 KB |
| references/range-adorner.md | markdown | 1.0 KB |
| references/step-interval-scrolling.md | markdown | 1.9 KB |
| references/validation-restrictions.md | markdown | 2.5 KB |
| references/value-management.md | markdown | 2.3 KB |
references/value-management.md
View on GitHub# Value Management
## Overview
IntegerTextBox supports direct value setting, data binding, paste modes, spin buttons, event handling, null values, and watermark text.
## Value Property
**Type:** `long?` (nullable) **Default:** `0`
```xml
<syncfusion:IntegerTextBox x:Name="integerTextBox" Value="10" Width="150" Height="25"/>
```
> **Important:** Use the `Value` property, not `Text`, to get/set integer values.
## Data Binding (MVVM)
```xml
<syncfusion:IntegerTextBox Value="{Binding MyValue, UpdateSourceTrigger=PropertyChanged}" Width="150" Height="25"/>
```
```csharp
public class ViewModel : INotifyPropertyChanged
{
private long myValue;
public long MyValue
{
get => myValue;
set { if (myValue != value) { myValue = value; OnPropertyChanged(); } }
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string p = null)
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(p));
}
```
## Paste Mode
| Mode | Behavior |
|------|----------|
| `Default` | Replaces entire value with pasted content |
| `Advanced` | Context-sensitive insert at cursor; blocks decimals |
```xml
<syncfusion:IntegerTextBox PasteMode="Advanced" Value="12345" Width="150" Height="30"/>
```
## Spin Buttons
```xml
<syncfusion:IntegerTextBox Value="50" MinValue="0" MaxValue="100" ScrollInterval="5" ShowSpinButton="True" Width="150" Height="30"/>
```
## ValueChanged Event
```csharp
private void IntegerTextBox_ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (e.NewValue != null)
{
long newVal = (long)e.NewValue;
// handle change
}
}
```
## Null Value Handling
| Property | Default | Purpose |
|----------|---------|---------|
| `UseNullOption` | `false` | Enable null value support |
| `NullValue` | `null` | Value shown when null |
```xml
<syncfusion:IntegerTextBox UseNullOption="True" NullValue="0" WatermarkText="Enter value" WatermarkTextIsVisible="True" Width="150" Height="25"/>
```
> When both `NullValue` and `WatermarkText` are set, `NullValue` takes priority.
## Watermark
```xml
<syncfusion:IntegerTextBox UseNullOption="True" WatermarkText="Enter age" WatermarkTextIsVisible="True" WatermarkTextForeground="Gray" WatermarkOpacity="0.6" Width="150" Height="25"/>
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 469k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |