Skip to content

syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-integer-textbox

syncfusion-wpf-integer-textbox

Verified

Comprehensive 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.

references/formatting-culture.md

View on GitHub
# Formatting and Culture

## Overview

IntegerTextBox supports three formatting methods: `Culture`, `NumberFormat`, and dedicated properties (`NumberGroupSeparator`, `NumberGroupSizes`).

**Priority (highest → lowest):** Dedicated Properties > `NumberFormat` > `Culture`

## Culture-Based Formatting

```xml
<syncfusion:IntegerTextBox Value="1234567" Culture="en-US" GroupSeperatorEnabled="True" Width="150" Height="25"/>
```

> **Always set `GroupSeperatorEnabled="True"`** — separators are hidden without it.

## Quick Reference: Common Cultures

| Culture | Display of 1234567890 | Separator |
|---------|-----------------------|-----------|
| `en-US` | `1,234,567,890` | Comma |
| `en-IN` | `1,23,45,67,890` | Comma (2/3 grouping) |
| `de-DE` | `1.234.567.890` | Period |
| `fr-FR` | `1 234 567 890` | Space |
| `de-CH` | `1''234''567''890` | Apostrophe |

## NumberFormat Property

```xml
<syncfusion:IntegerTextBox Value="123456789012345" GroupSeperatorEnabled="True">
    <syncfusion:IntegerTextBox.NumberFormat>
        <numberformat:NumberFormatInfo NumberGroupSeparator="/"/>
    </syncfusion:IntegerTextBox.NumberFormat>
</syncfusion:IntegerTextBox>
```

With custom group sizes in C#:

```csharp
integerTextBox.GroupSeperatorEnabled = true;
integerTextBox.NumberFormat = new NumberFormatInfo
{
    NumberGroupSeparator = "/",
    NumberGroupSizes = new int[] { 2, 3, 4 }
};
```

## Dedicated Properties

```xml
<syncfusion:IntegerTextBox Value="123456789012345" NumberGroupSeparator="/" GroupSeperatorEnabled="True" Width="250" Height="30">
    <syncfusion:IntegerTextBox.NumberGroupSizes>
        <sys:Int32>2</sys:Int32>
        <sys:Int32>3</sys:Int32>
        <sys:Int32>0</sys:Int32>
    </syncfusion:IntegerTextBox.NumberGroupSizes>
</syncfusion:IntegerTextBox>
```

`NumberGroupSizes` is read **right-to-left**. A trailing `0` repeats the previous group size for all remaining digits.
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall