Implementing .NET MAUI Numeric Entry
The Syncfusion .NET MAUI Numeric Entry control is designed to deliver a user-friendly and advanced input experience for numeric data. It supports a broad range of numeric formats, including currency, percentages, decimals, and other configurable number types. With its rich set of features, the control enhances the overall user experience while simplifying numeric input validation and formatting.
When to Use This Skill
Use this skill when users need to:
- Accept numeric input with validation and formatting
- Create currency, percentage, or decimal input fields
- Implement value increment/decrement with up/down buttons
- Restrict numeric values within a minimum and maximum range
- Format numeric values with culture-specific patterns
- Provide numeric input with keyboard shortcuts (arrow keys, page keys)
- Build price entry fields, quantity selectors, or rating systems
- Create age inputs, discount calculators, or measurement fields
- Implement read-only numeric displays with button controls
- Add modern translucent glass effects to numeric inputs
Component Overview
The Syncfusion .NET MAUI Numeric Entry (SfNumericEntry) is a specialized input control designed for numeric data entry with advanced features:
Key Capabilities
- Numeric Validation: Restricts alphabetic input, validates on Enter key or focus loss
- Format Support: Currency (C), Percentage (P), Decimal (N), and custom formats
- Value Controls: Up/down buttons, keyboard arrows, mouse scrolling for value changes
- Range Restrictions: Enforce minimum and maximum value constraints
- Customization: Full control over appearance, fonts, colors, borders, and buttons
- Culture Support: Adapt to different regional number formats
- Accessibility: WCAG compliance with AutomationId support
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
When to read: Setting up Numeric Entry for the first time, need basic implementation
Topics covered:
- Create .NET MAUI project
- Install Syncfusion.Maui.Inputs NuGet package
- Register handler in MauiProgram.cs with ConfigureSyncfusionCore()
- Add namespace and basic Numeric Entry control (XAML/C#)
- Edit values with validation on Enter key or focus loss
- Change number format with CustomFormat property
- Accept or restrict null values with AllowNull
- UI customization (PlaceholderColor, TextColor, Font properties)
- Caret and selection control (CursorPosition, SelectionLength)
- Methods: Focus(), Unfocus()
- Events: Focused, Unfocused with FocusEventArgs
Basic Features and Configuration
📄 Read: references/basic-features.md
When to read: Configuring placeholder, clear button, events, borders, or text alignment
Topics covered:
- Setting placeholder text with Placeholder property
- Clear button visibility (ShowClearButton) and color (ClearButtonColor)
- Custom clear button paths with ClearButtonPath
- Value change notifications with ValueChanged event
- Value change modes (OnLostFocus, OnKeyFocus)
- Completed event (return key pressed)
- ClearButtonClicked event
- Border customization (Stroke, ShowBorder)
- Text alignment (HorizontalTextAlignment, VerticalTextAlignment)
- Select all text on focus with SelectAllOnFocus
- Keyboard return type configuration with ReturnType
- Return commands (ReturnCommand, ReturnCommandParameter)
- AutomationId for UI testing and accessibility
Value Formatting
📄 Read: references/formatting.md
When to read: Need to format values as currency, percentage, or custom numeric formats
Topics covered:
- Currency format (C2): $1,234.56
- Percentage format (P2): 45.50%
- Decimal format (N2): 1,234.56
- Custom format strings with 0 and # specifiers
- Integer digit formatting with zero placeholder
- Fractional digit formatting
- Custom format combinations (e.g., "$00.00##")
- Culture-based formatting with Culture property
- Percentage display modes (Value vs Compute)
- Maximum decimal digits with MaximumNumberDecimalDigits
Value Restrictions
📄 Read: references/restrictions.md
When to read: Need to enforce minimum/maximum values or prevent null values
Topics covered:
- Restrict null values with AllowNull property
- Behavior when AllowNull is false (returns 0 or Minimum)
- Restrict value within range using Minimum and Maximum
- Default values (double.MinValue, double.MaxValue)
- Prevent text editing with IsEditable property
- Value changes still allowed via buttons, keys, and scroll
- Range validation and edge cases
UpDown Buttons
📄 Read: references/updown-buttons.md
When to read: Implementing increment/decrement buttons or keyboard/mouse value changes
Topics covered:
- Increase/decrease with keyboard arrows and Page keys
- SmallChange (arrow keys, mouse scroll, up/down buttons)
- LargeChange (Page Up/Down keys)
- UpDown button placement modes:
- Hidden (default, no buttons shown)
- Inline (horizontal buttons)
- InlineVertical (vertical stacked buttons)
- Button alignment (Left, Right, Both)
- Button order (UpThenDown, DownThenUp)
- Button color customization (UpDownButtonColor)
- Custom button templates (UpButtonTemplate, DownButtonTemplate)
- Auto-reverse behavior (restart at min/max with AutoReverse)
Liquid Glass Effect
📄 Read: references/liquid-glass-effect.md
When to read: Implementing modern translucent glass design (.NET 10, iOS 26+, macOS 26+)
Topics covered:
- Liquid Glass Effect overview
- Wrap Numeric Entry in SfGlassEffectView
- Set Background to Transparent for glass effect
- Configure EffectType and EnableShadowEffect
- Platform requirements and limitations
1---
2name: syncfusion-maui-numeric-entry
3description: Implements Syncfusion .NET MAUI Numeric Entry control. Use when working with numeric input with validation, formatting (currency, percentage, decimal), value increment/decrement buttons, or range restrictions. Ideal for price inputs, quantity selectors, percentage calculators, or numeric data entry with custom formats.
4metadata:
5 author: "Syncfusion Inc"
6 version: "34.1.29"
7---
8
9# Implementing .NET MAUI Numeric Entry
10
11The Syncfusion .NET MAUI Numeric Entry control is designed to deliver a user-friendly and advanced input experience for numeric data. It supports a broad range of numeric formats, including currency, percentages, decimals, and other configurable number types. With its rich set of features, the control enhances the overall user experience while simplifying numeric input validation and formatting.
12
13## When to Use This Skill
14
15Use this skill when users need to:
16
17- Accept numeric input with validation and formatting
18- Create currency, percentage, or decimal input fields
19- Implement value increment/decrement with up/down buttons
20- Restrict numeric values within a minimum and maximum range
21- Format numeric values with culture-specific patterns
22- Provide numeric input with keyboard shortcuts (arrow keys, page keys)
23- Build price entry fields, quantity selectors, or rating systems
24- Create age inputs, discount calculators, or measurement fields
25- Implement read-only numeric displays with button controls
26- Add modern translucent glass effects to numeric inputs
27
28## Component Overview
29
30The **Syncfusion .NET MAUI Numeric Entry (SfNumericEntry)** is a specialized input control designed for numeric data entry with advanced features:
31
32### Key Capabilities
33
34- **Numeric Validation**: Restricts alphabetic input, validates on Enter key or focus loss
35- **Format Support**: Currency (C), Percentage (P), Decimal (N), and custom formats
36- **Value Controls**: Up/down buttons, keyboard arrows, mouse scrolling for value changes
37- **Range Restrictions**: Enforce minimum and maximum value constraints
38- **Customization**: Full control over appearance, fonts, colors, borders, and buttons
39- **Culture Support**: Adapt to different regional number formats
40- **Accessibility**: WCAG compliance with AutomationId support
41
42
43## Documentation and Navigation Guide
44
45### Getting Started
46📄 **Read:** [references/getting-started.md](references/getting-started.md)
47
48**When to read:** Setting up Numeric Entry for the first time, need basic implementation
49
50**Topics covered:**
51- Create .NET MAUI project
52- Install Syncfusion.Maui.Inputs NuGet package
53- Register handler in MauiProgram.cs with ConfigureSyncfusionCore()
54- Add namespace and basic Numeric Entry control (XAML/C#)
55- Edit values with validation on Enter key or focus loss
56- Change number format with CustomFormat property
57- Accept or restrict null values with AllowNull
58- UI customization (PlaceholderColor, TextColor, Font properties)
59- Caret and selection control (CursorPosition, SelectionLength)
60- Methods: Focus(), Unfocus()
61- Events: Focused, Unfocused with FocusEventArgs
62
63### Basic Features and Configuration
64📄 **Read:** [references/basic-features.md](references/basic-features.md)
65
66**When to read:** Configuring placeholder, clear button, events, borders, or text alignment
67
68**Topics covered:**
69- Setting placeholder text with Placeholder property
70- Clear button visibility (ShowClearButton) and color (ClearButtonColor)
71- Custom clear button paths with ClearButtonPath
72- Value change notifications with ValueChanged event
73- Value change modes (OnLostFocus, OnKeyFocus)
74- Completed event (return key pressed)
75- ClearButtonClicked event
76- Border customization (Stroke, ShowBorder)
77- Text alignment (HorizontalTextAlignment, VerticalTextAlignment)
78- Select all text on focus with SelectAllOnFocus
79- Keyboard return type configuration with ReturnType
80- Return commands (ReturnCommand, ReturnCommandParameter)
81- AutomationId for UI testing and accessibility
82
83### Value Formatting
84📄 **Read:** [references/formatting.md](references/formatting.md)
85
86**When to read:** Need to format values as currency, percentage, or custom numeric formats
87
88**Topics covered:**
89- Currency format (C2): $1,234.56
90- Percentage format (P2): 45.50%
91- Decimal format (N2): 1,234.56
92- Custom format strings with 0 and # specifiers
93- Integer digit formatting with zero placeholder
94- Fractional digit formatting
95- Custom format combinations (e.g., "$00.00##")
96- Culture-based formatting with Culture property
97- Percentage display modes (Value vs Compute)
98- Maximum decimal digits with MaximumNumberDecimalDigits
99
100### Value Restrictions
101📄 **Read:** [references/restrictions.md](references/restrictions.md)
102
103**When to read:** Need to enforce minimum/maximum values or prevent null values
104
105**Topics covered:**
106- Restrict null values with AllowNull property
107- Behavior when AllowNull is false (returns 0 or Minimum)
108- Restrict value within range using Minimum and Maximum
109- Default values (double.MinValue, double.MaxValue)
110- Prevent text editing with IsEditable property
111- Value changes still allowed via buttons, keys, and scroll
112- Range validation and edge cases
113
114### UpDown Buttons
115📄 **Read:** [references/updown-buttons.md](references/updown-buttons.md)
116
117**When to read:** Implementing increment/decrement buttons or keyboard/mouse value changes
118
119**Topics covered:**
120- Increase/decrease with keyboard arrows and Page keys
121- SmallChange (arrow keys, mouse scroll, up/down buttons)
122- LargeChange (Page Up/Down keys)
123- UpDown button placement modes:
124 - Hidden (default, no buttons shown)
125 - Inline (horizontal buttons)
126 - InlineVertical (vertical stacked buttons)
127- Button alignment (Left, Right, Both)
128- Button order (UpThenDown, DownThenUp)
129- Button color customization (UpDownButtonColor)
130- Custom button templates (UpButtonTemplate, DownButtonTemplate)
131- Auto-reverse behavior (restart at min/max with AutoReverse)
132
133### Liquid Glass Effect
134📄 **Read:** [references/liquid-glass-effect.md](references/liquid-glass-effect.md)
135
136**When to read:** Implementing modern translucent glass design (.NET 10, iOS 26+, macOS 26+)
137
138**Topics covered:**
139- Liquid Glass Effect overview
140- Wrap Numeric Entry in SfGlassEffectView
141- Set Background to Transparent for glass effect
142- Configure EffectType and EnableShadowEffect
143- Platform requirements and limitations
144