syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-calendar
syncfusion-wpf-calendar
VerifiedGuide to using the Syncfusion WPF CalendarEdit control for date selection and navigation. Use this skill whenever the user needs to implement calendar functionality, select dates, restrict date ranges, customize calendar appearance, or work with multi-date selection. Essential for building date picker interfaces, booking systems, scheduling applications, and any WPF project requiring calendar controls.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.5 KB |
| references/appearance.md | markdown | 12.1 KB |
| references/date-selection.md | markdown | 1.6 KB |
| references/getting-started.md | markdown | 1.2 KB |
| references/navigation.md | markdown | 8.7 KB |
| references/restrict-dates.md | markdown | 10.3 KB |
references/date-selection.md
View on GitHub# Date Selection in CalendarEdit
## Overview
This document describes single and multiple date selection, the primary `Date` property, `SelectedDates` collection, and selection events.
## Single Date Selection
- Click a date in the calendar to set the `Date` property.
- Set `Date` programmatically: `calendarEdit.Date = new DateTime(2024, 3, 15);`
## Multiple Date Selection
- Use `AllowMultiplySelection = true` to enable multiple selection (default).
- Select a date range by dragging or pick non-contiguous dates with Ctrl+click.
- Read selected dates from `calendarEdit.SelectedDates`.
```csharp
// Iterate selected dates
foreach (DateTime d in calendarEdit.SelectedDates)
{
Debug.WriteLine(d.ToString("yyyy-MM-dd"));
}
```
## Selection Events
- `SelectedDateChanged` fires when a selection changes.
```csharp
private void CalendarEdit_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
{
// Primary selected date
DateTime primary = calendarEdit.Date;
}
```
## Common Patterns (short)
- Single-date picker: `AllowMultiplySelection = false;` and bind `Date` to UI.
- Range picker: enable `AllowMultiplySelection` and use `SelectedDates` for start/end.
- Clear selection: `calendarEdit.SelectedDates.Clear(); calendarEdit.Date = DateTime.Today;`
## Troubleshooting (short)
- If `SelectedDates` is empty, confirm `AllowMultiplySelection` and user selection method.
- If programmatic `Date` assignment has no effect, ensure date is within `MinDate/MaxDate`.
## Related
- [Navigation Support](navigation.md)
- [Restrict Date Selection](restrict-dates.md)
- [Appearance Customization](appearance.md)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |