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