Implementing Syncfusion .NET MAUI DatePicker (SfDatePicker)
Syncfusion .NET MAUI DatePicker (SfDatePicker) control allows you to select dates with a visually rich, customizable picker interface. The control supports dialog and drop-down modes, extensive customization options, date restrictions, formatting, localization, and accessibility features.
When to Use This Skill
Use this skill when you need to:
- Implement date selection - Add date picker controls to .NET MAUI applications
- Format dates - Display dates in various formats (20+ predefined options)
- Restrict date selection - Set minimum/maximum dates, blackout specific dates
- Customize appearance - Style headers, footers, column headers, selection views
- Handle date events - Respond to date selection, dialog open/close, OK/Cancel actions
- Configure picker modes - Use Dialog, RelativeDialog, or Default display modes
- Add intervals - Set day/month/year intervals for selection
- Enable accessibility - Support keyboard navigation and localization
Component Overview
Key Capabilities:
- Date Selection - Interactive date picker with day, month, year columns
- Multiple Formats - 20+ predefined date formats (dd/MM/yyyy, MM/dd/yyyy, etc.)
- Picker Modes - Dialog, RelativeDialog with customizable positions
- Customization - Headers, footers, column headers, selection views, colors, fonts
- Date Restrictions - Min/max dates, blackout dates collection
- Intervals - Day, month, year intervals for custom date ranges
- Events & Commands - SelectionChanged, dialog events, footer button events
- Accessibility - Keyboard navigation, screen reader support, localization
- Advanced - Text display modes (Fade, Shrink)
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Installation and NuGet package setup
- Handler registration in MauiProgram.cs
- Basic DatePicker implementation (XAML & C#)
- Setting header, footer, height, width
- SelectedDate property and clear selection
Date Formatting
📄 Read: references/formatting.md
- 20+ predefined date formats
- Format property usage
- Common format patterns (dd_MM_yyyy, MM_dd_yyyy, etc.)
- Custom format examples
Picker Modes and Display
📄 Read: references/picker-modes.md
- Dialog mode (popup display)
- RelativeDialog mode (positioned relative to view)
- 8 relative positions (AlignTop, AlignBottom, etc.)
- IsOpen property for programmatic control
- Custom popup size (PopupWidth, PopupHeight)
Customization and Styling
📄 Read: references/customizations.md
- Header customization (text, divider, background, template)
- Column header customization (day/month/year headers)
- Footer customization (OK/Cancel buttons)
- Selection view customization (corner radius, stroke, padding)
- Column divider colors
- Close button and icon
- Column-specific text styles and widths
- DataTemplateSelector support
Date Restrictions
📄 Read: references/date-restrictions.md
- MinimumDate property
- MaximumDate property
- BlackoutDates collection
- Date range validation
- Preventing selection beyond ranges
Intervals and Looping
📄 Read: references/intervals-and-looping.md
- DayInterval property
- MonthInterval property
- YearInterval property
- EnableLooping for seamless navigation
Events and Commands
📄 Read: references/events-and-commands.md
- SelectionChanged event (NewValue, OldValue)
- Dialog mode events (Opened, Closing, Closed)
- Footer events (OkButtonClicked, CancelButtonClicked)
- SelectionChangedCommand, AcceptCommand, DeclineCommand
- Event handling patterns
Accessibility and Localization
📄 Read: references/accessibility-localization.md
- Accessibility features for headers, footers, picker items
- Keyboard navigation (Tab, Enter, Arrow keys)
- Localization setup and resource files
- CurrentUICulture configuration
- Multilingual support
Advanced Features
📄 Read: references/advanced-features.md
- Text display modes (Default, Fade, Shrink, FadeAndShrink)
- Platform requirements (.NET 10, macOS 26+, iOS 26+)
1---
2name: syncfusion-maui-toolkit-date-picker
3description: Implements Syncfusion .NET MAUI DatePicker (SfDatePicker) control for date selection. Use when implementing date pickers, adding date selection UI, or working with SfDatePicker control. Covers date picker appearance customization (headers, footers, columns), date formatting (20+ predefined formats), date restrictions (min/max dates, blackout dates), and picker modes (Dialog, RelativeDialog).
4metadata:
5 author: "Syncfusion Inc"
6 version: "1.0.0"
7---
8
9# Implementing Syncfusion .NET MAUI DatePicker (SfDatePicker)
10
11Syncfusion .NET MAUI DatePicker (SfDatePicker) control allows you to select dates with a visually rich, customizable picker interface. The control supports dialog and drop-down modes, extensive customization options, date restrictions, formatting, localization, and accessibility features.
12
13## When to Use This Skill
14
15Use this skill when you need to:
16
17- **Implement date selection** - Add date picker controls to .NET MAUI applications
18- **Format dates** - Display dates in various formats (20+ predefined options)
19- **Restrict date selection** - Set minimum/maximum dates, blackout specific dates
20- **Customize appearance** - Style headers, footers, column headers, selection views
21- **Handle date events** - Respond to date selection, dialog open/close, OK/Cancel actions
22- **Configure picker modes** - Use Dialog, RelativeDialog, or Default display modes
23- **Add intervals** - Set day/month/year intervals for selection
24- **Enable accessibility** - Support keyboard navigation and localization
25
26## Component Overview
27
28**Key Capabilities:**
29- **Date Selection** - Interactive date picker with day, month, year columns
30- **Multiple Formats** - 20+ predefined date formats (dd/MM/yyyy, MM/dd/yyyy, etc.)
31- **Picker Modes** - Dialog, RelativeDialog with customizable positions
32- **Customization** - Headers, footers, column headers, selection views, colors, fonts
33- **Date Restrictions** - Min/max dates, blackout dates collection
34- **Intervals** - Day, month, year intervals for custom date ranges
35- **Events & Commands** - SelectionChanged, dialog events, footer button events
36- **Accessibility** - Keyboard navigation, screen reader support, localization
37- **Advanced** - Text display modes (Fade, Shrink)
38
39## Documentation and Navigation Guide
40
41### Getting Started
42📄 **Read:** [references/getting-started.md](references/getting-started.md)
43- Installation and NuGet package setup
44- Handler registration in MauiProgram.cs
45- Basic DatePicker implementation (XAML & C#)
46- Setting header, footer, height, width
47- SelectedDate property and clear selection
48
49### Date Formatting
50📄 **Read:** [references/formatting.md](references/formatting.md)
51- 20+ predefined date formats
52- Format property usage
53- Common format patterns (dd_MM_yyyy, MM_dd_yyyy, etc.)
54- Custom format examples
55
56### Picker Modes and Display
57📄 **Read:** [references/picker-modes.md](references/picker-modes.md)
58- Dialog mode (popup display)
59- RelativeDialog mode (positioned relative to view)
60- 8 relative positions (AlignTop, AlignBottom, etc.)
61- IsOpen property for programmatic control
62- Custom popup size (PopupWidth, PopupHeight)
63
64### Customization and Styling
65📄 **Read:** [references/customizations.md](references/customizations.md)
66- Header customization (text, divider, background, template)
67- Column header customization (day/month/year headers)
68- Footer customization (OK/Cancel buttons)
69- Selection view customization (corner radius, stroke, padding)
70- Column divider colors
71- Close button and icon
72- Column-specific text styles and widths
73- DataTemplateSelector support
74
75### Date Restrictions
76📄 **Read:** [references/date-restrictions.md](references/date-restrictions.md)
77- MinimumDate property
78- MaximumDate property
79- BlackoutDates collection
80- Date range validation
81- Preventing selection beyond ranges
82
83### Intervals and Looping
84📄 **Read:** [references/intervals-and-looping.md](references/intervals-and-looping.md)
85- DayInterval property
86- MonthInterval property
87- YearInterval property
88- EnableLooping for seamless navigation
89
90### Events and Commands
91📄 **Read:** [references/events-and-commands.md](references/events-and-commands.md)
92- SelectionChanged event (NewValue, OldValue)
93- Dialog mode events (Opened, Closing, Closed)
94- Footer events (OkButtonClicked, CancelButtonClicked)
95- SelectionChangedCommand, AcceptCommand, DeclineCommand
96- Event handling patterns
97
98### Accessibility and Localization
99📄 **Read:** [references/accessibility-localization.md](references/accessibility-localization.md)
100- Accessibility features for headers, footers, picker items
101- Keyboard navigation (Tab, Enter, Arrow keys)
102- Localization setup and resource files
103- CurrentUICulture configuration
104- Multilingual support
105
106### Advanced Features
107📄 **Read:** [references/advanced-features.md](references/advanced-features.md)
108- Text display modes (Default, Fade, Shrink, FadeAndShrink)
109- Platform requirements (.NET 10, macOS 26+, iOS 26+)
110