$npx -y skills add syncfusion/maui-toolkit-ui-components-skills --skill syncfusion-maui-toolkit-numeric-updownImplement the Syncfusion .NET MAUI NumericUpDown control for numeric input with validation, formatting, and increment/decrement buttons. Use this skill when building forms requiring numeric entry with up-down buttons, currency formatting, percentage values, decimal precision, cus
| 1 | # Syncfusion .NET MAUI NumericUpDown |
| 2 | |
| 3 | The **SfNumericUpDown** control provides a user-friendly numeric input experience with built-in validation, formatting options, and convenient increment/decrement buttons. Perfect for building professional forms that require validated numeric entry. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when you need to: |
| 8 | |
| 9 | - **Build numeric input fields** in .NET MAUI applications |
| 10 | - **Format numbers** as currency (C2), percentages (P2), or decimals (N2) |
| 11 | - **Restrict input** to valid ranges (Minimum/Maximum values) |
| 12 | - **Provide quick value adjustments** with up/down arrow buttons or keyboard controls |
| 13 | - **Display placeholders** for empty numeric fields |
| 14 | - **Handle validation** automatically with OnKeyFocus or OnLostFocus modes |
| 15 | - **Customize appearance** of buttons, colors, borders, and fonts |
| 16 | - **Support cultural formats** with culture-aware number display |
| 17 | |
| 18 | ## Component Overview |
| 19 | |
| 20 | The **SfNumericUpDown** (or NumericUpDown) control is a specialized input field designed for entering and editing numeric values in .NET MAUI applications. It combines three interaction patterns: |
| 21 | |
| 22 | **What It Does:** |
| 23 | - Accepts numeric input with optional text field for direct entry |
| 24 | - Provides increment/decrement buttons (up/down arrows) for quick value adjustment |
| 25 | - Supports keyboard navigation (arrow keys, Page Up/Down, Tab, Return) |
| 26 | - Enforces validation with configurable ranges (Minimum/Maximum) |
| 27 | - Formats numbers according to culture, currency, or custom specifications |
| 28 | - Displays placeholder text when no value is set |
| 29 | |
| 30 | **Key Characteristics:** |
| 31 | - **Smart Validation:** OnKeyFocus (real-time) or OnLostFocus (deferred) validation modes |
| 32 | - **Flexible Formatting:** Currency (C2), percentages (P2), decimals (N2), or custom formats |
| 33 | - **Customizable Buttons:** Placement modes (Inline, InlineVertical), alignment (Left, Right, Both), color, and custom templates |
| 34 | - **Constraint Support:** Min/Max ranges, null handling (AllowNull), text-only mode (IsEditable=false) |
| 35 | - **Event Driven:** ValueChanged, Completed, Focused/Unfocused events for form integration |
| 36 | - **Accessible:** Support for WCAG compliance, screen readers, and keyboard-only navigation |
| 37 | |
| 38 | **When to Choose NumericUpDown:** |
| 39 | - Need a professional numeric input with built-in increment buttons |
| 40 | - Want automatic validation and formatting without custom code |
| 41 | - Building financial forms (prices, discounts, percentages) |
| 42 | - Creating inventory systems (quantities, stock levels) |
| 43 | - Implementing settings or preference screens |
| 44 | - Need culture-aware number formatting |
| 45 | |
| 46 | ## Documentation and Navigation Guide |
| 47 | |
| 48 | ### Getting Started |
| 49 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 50 | - Installation and NuGet package setup |
| 51 | - Registering handlers in MauiProgram.cs |
| 52 | - Adding a basic NumericUpDown control |
| 53 | - XAML and C# initialization patterns |
| 54 | - First render and validation modes |
| 55 | |
| 56 | ### Value Management & Constraints |
| 57 | 📄 **Read:** [references/value-management.md](references/value-management.md) |
| 58 | - Setting and binding numeric values |
| 59 | - Minimum and Maximum value restrictions |
| 60 | - Null value handling with AllowNull property |
| 61 | - Default values and initial setup |
| 62 | - Preventing manual text editing with IsEditable |
| 63 | |
| 64 | ### Formatting & Display Options |
| 65 | 📄 **Read:** [references/formatting-display.md](references/formatting-display.md) |
| 66 | - Custom number formats (currency, percentage, decimal) |
| 67 | - Placeholder text and placeholder color customization |
| 68 | - Culture-aware number display |
| 69 | - Maximum decimal digits management |
| 70 | - Percentage display modes (Value vs Compute) |
| 71 | - Custom format specifiers (0, #, C, P, N) |
| 72 | |
| 73 | ### Validation & Events |
| 74 | 📄 **Read:** [references/validation-events.md](references/validation-events.md) |
| 75 | - ValueChanged event with OldValue and NewValue |
| 76 | - Completed event when editing is finished |
| 77 | - Focused and Unfocused events |
| 78 | - ValueChangeMode (OnKeyFocus vs OnLostFocus) |
| 79 | - Programmatic focus management |
| 80 | - Return key commands |
| 81 | |
| 82 | ### Up/Down Button Control |
| 83 | 📄 **Read:** [references/buttons-updown.md](references/buttons-updown.md) |
| 84 | - SmallChange and LargeChange increments |
| 85 | - Keyboard shortcuts (Arrow keys, Page Up/Down) |
| 86 | - Mouse scroll wheel support |
| 87 | - Up/Down button placement modes (Inline, InlineVertical) |
| 88 | - Button alignment (Left, Right, Both) |
| 89 | - Button color customization |
| 90 | - Custom button templates |
| 91 | - Auto-reverse behavior |
| 92 | |
| 93 | ### Customization & UI Features |
| 94 | 📄 **Read:** [references/customization.md](references/customization.md) |
| 95 | - Border visibility and stroke color |
| 96 | - Text color and alignment customization |
| 97 | - Font family, size, and attributes |
| 98 | - Clear button visibility and customizati |