Skip to content

syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-calendar

syncfusion-wpf-calendar

Verified

Guide 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.

FileKindSize
SKILL.mdskill md6.5 KB
references/appearance.mdmarkdown12.1 KB
references/date-selection.mdmarkdown1.6 KB
references/getting-started.mdmarkdown1.2 KB
references/navigation.mdmarkdown8.7 KB
references/restrict-dates.mdmarkdown10.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)
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall