$npx -y skills add syncfusion/maui-ui-components-skills --skill syncfusion-maui-dataformImplements Syncfusion .NET MAUI DataForm (SfDataForm). Use when creating data entry forms, edit forms, login forms, registration forms, or contact forms in MAUI. Covers form creation, data validation, editor customization, layout management, data binding, grouping, localization,
| 1 | # Implementing .NET MAUI DataForm (SfDataForm) |
| 2 | |
| 3 | The Syncfusion .NET MAUI DataForm (SfDataForm) is a comprehensive form builder control that automatically generates data entry forms from data objects. It provides built-in editors, validation, flexible layouts, and extensive customization options for creating professional data collection and editing interfaces. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when you need to: |
| 8 | - **Create data entry forms** (login, registration, contact, employee forms, etc.) |
| 9 | - **Edit data objects** with automatic form generation from model classes |
| 10 | - **Validate user input** with built-in or custom validation rules |
| 11 | - **Customize form editors** (text, numeric, date, dropdown, etc.) |
| 12 | - **Layout forms** in linear or grid arrangements |
| 13 | - **Group form fields** with collapsible sections |
| 14 | - **Localize forms** for multiple languages |
| 15 | - **Support RTL layouts** for right-to-left languages |
| 16 | - **Implement floating label designs** for modern UIs |
| 17 | - **Handle form commits** with different modes (LostFocus, PropertyChanged, Manual) |
| 18 | |
| 19 | **Typical scenarios:** |
| 20 | - User registration and profile editing |
| 21 | - Business data entry (orders, invoices, contacts) |
| 22 | - Settings and configuration screens |
| 23 | - Survey and questionnaire forms |
| 24 | - Search and filter forms |
| 25 | |
| 26 | ## Component Overview |
| 27 | |
| 28 | **Key Features:** |
| 29 | - **Auto-generation:** Automatically creates form editors from data object properties |
| 30 | - **10+ Built-in Editors:** Text, numeric, date, time, dropdown, checkbox, switch, masked entry, and more |
| 31 | - **Validation:** Built-in support for data annotations and custom validation |
| 32 | - **Flexible Layouts:** Linear or grid layouts with grouping support |
| 33 | - **Customization:** Custom editors, styling, and behavior modification |
| 34 | - **Localization:** Multi-language support with resource files |
| 35 | - **Accessibility:** RTL support and screen reader compatibility |
| 36 | |
| 37 | |
| 38 | ## Documentation and Navigation Guide |
| 39 | |
| 40 | ### Getting Started |
| 41 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 42 | |
| 43 | Learn the fundamentals of setting up and using DataForm: |
| 44 | - NuGet package installation for Visual Studio, VS Code, and Rider |
| 45 | - Handler registration in MauiProgram.cs |
| 46 | - Creating data objects and view models |
| 47 | - Binding the DataObject property |
| 48 | - First DataForm implementation |
| 49 | - DataForm sizing in StackLayout containers |
| 50 | - Basic configuration and setup |
| 51 | |
| 52 | **When to read:** Starting a new project with DataForm, or need installation guidance. |
| 53 | |
| 54 | --- |
| 55 | |
| 56 | ### Built-in Editors |
| 57 | 📄 **Read:** [references/built-in-editors.md](references/built-in-editors.md) |
| 58 | |
| 59 | Understand the 10+ built-in editor types and automatic generation: |
| 60 | - Text editors (Text, Multiline, Password) |
| 61 | - Numeric editor (SfNumericEntry) |
| 62 | - Date and Time editors (DatePicker, TimePicker) |
| 63 | - Boolean editors (CheckBox, Switch) |
| 64 | - Selection editors (Picker, ComboBox, AutoComplete, RadioGroup) |
| 65 | - MaskedText editor for phone numbers and credit cards |
| 66 | - Editor generation rules based on data types |
| 67 | - DataFormItem types and input control mapping |
| 68 | - DataType attributes for editor selection |
| 69 | |
| 70 | **When to read:** Need to understand which editor is generated for each property type, or want to see available editor options. |
| 71 | |
| 72 | --- |
| 73 | |
| 74 | ### Custom Editors |
| 75 | 📄 **Read:** [references/custom-editors.md](references/custom-editors.md) |
| 76 | |
| 77 | Learn to configure and create custom editors: |
| 78 | - Explicit editor configuration (switching between editor types) |
| 79 | - Changing editor types for properties |
| 80 | - Custom editor view implementation |
| 81 | - ItemManager customization |
| 82 | - InitializeDataEditor method override |
| 83 | - Custom control integration |
| 84 | - Editor property mapping and binding |
| 85 | - Advanced editor customization scenarios |
| 86 | |
| 87 | **When to read:** Need to change the default editor for a property, or implement a completely custom editor control. |
| 88 | |
| 89 | --- |
| 90 | |
| 91 | ### Validation |
| 92 | 📄 **Read:** [references/validation.md](references/validation.md) |
| 93 | |
| 94 | Implement comprehensive data validation: |
| 95 | - Built-in validation attributes (Required, StringLength, Range, EmailAddress, etc.) |
| 96 | - Data annotation validation |
| 97 | - Validation modes (LostFocus, PropertyChanged, Manual) |
| 98 | - DataFormDateRange attribute for date validation |
| 99 | - Custom validation logic implementation |
| 100 | - Validation error display and styling |
| 101 | - Programmatic validation with Validate() method |
| 102 | - ValidationLabel customization |
| 103 | - Real-time vs on-submit validation |
| 104 | |
| 105 | **When to read:** Need to validate form input, show error messages, or implement custom validation rules. |
| 106 | |
| 107 | --- |
| 108 | |
| 109 | ### Data Annotations |
| 110 | 📄 **Read:** [references/data-annotations.md](references/data-annotations.md) |
| 111 | |
| 112 | Configure DataForm behavior declaratively with attributes: |
| 113 | - Display attribute |