Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winui-calendar-date-range-pickerSynfusion WinUI 日历日期范围选择器

Agent Skill

syncfusion-winui-calendar-date-range-picker 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

563

周安装

23

GitHub Stars

公开资料未说明

下载量

182
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winui-calendar-date-range-picker(Synfusion WinUI 日历日期范围选择器)
来源仓库:https://github.com/syncfusion/winui-ui-components-skills
仓库路径:skills/syncfusion-winui-calendar-date-range-picker
安装命令:
npx skills add https://github.com/syncfusion/winui-ui-components-skills --skill syncfusion-winui-calendar-date-range-picker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winui-ui-components-skills --skill syncfusion-winui-calendar-date-range-picker

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-winui-calendar-date-range-picker 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Calendar DateRange Picker

The WinUI CalendarDateRangePicker (SfCalendarDateRangePicker) control provides an intuitive, touch-friendly interface to quickly select a date range from a drop-down calendar. It supports different date formats, date range restrictions, preset items, week numbers, localization, and extensive UI customization options.

When to Use This Skill

Use this skill when you need to:

  • Implement date range selection - Allow users to select a continuous range of dates (start date and end date) from a calendar
  • Add CalendarDateRangePicker to WinUI apps - Install, configure, and use the SfCalendarDateRangePicker control
  • Configure range selection - Set selected range programmatically, handle range change events, validate range selection
  • Restrict date selection - Apply min/max dates, blackout specific dates, limit range duration, block weekend dates
  • Customize calendar UI - Change drop-down alignment, customize item templates, apply themes, modify appearance
  • Support localization - Use different calendar types (Gregorian, Hebrew, Hijri, etc.), change languages, apply RTL
  • Format date display - Customize how dates and ranges are displayed in the editor and calendar
  • Show preset ranges - Display predefined date ranges (This Week, This Month, Last Month, This Year, Custom Range)
  • Enable week numbers - Show week numbers in the calendar with customizable rules and formats
  • Handle navigation - Control view navigation (month, year, decade, century), keyboard shortcuts
  • Validate date ranges - Ensure selected ranges meet minimum/maximum duration requirements

Component Overview

The CalendarDateRangePicker control consists of:

  • Editor - Text input displaying the selected date range
  • Drop-down button - Opens the calendar drop-down
  • Drop-down calendar - Interactive calendar for range selection with month/year/decade/century views
  • Preset items panel - Optional list of predefined date ranges
  • Submit buttons - Optional OK/Cancel buttons for range confirmation
  • Week numbers column - Optional display of week numbers
  • Header and description - Optional title and helper text

Key capabilities:

  • Touch-friendly range selection
  • Multiple calendar systems (Gregorian, Hebrew, Hijri, Korean, etc.)
  • Customizable date formats
  • Date range restrictions and validation
  • Blackout dates support
  • Preset date ranges
  • Week number display
  • Keyboard navigation
  • Theme customization

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Use when:

  • Installing the CalendarDateRangePicker control for the first time
  • Adding the control to XAML or C# code
  • Setting the selected range programmatically or interactively
  • Configuring header, description, and placeholder text
  • Handling selection changed events (SelectedDateRangeChanged)
  • Showing or hiding the drop-down button
  • Configuring submit buttons (OK/Cancel)
  • Understanding basic control structure and setup

UI Customization

📄 Read: references/ui-customization.md

Use when:

  • Changing drop-down alignment (top, bottom, left, right, center)
  • Customizing drop-down calendar size
  • Creating custom calendar item templates
  • Highlighting special dates with custom styling
  • Applying theme keys for colors and fonts
  • Customizing day, week, and header appearance
  • Using AttachedFlyout and DropDownFlyout for advanced customization
  • Styling the CalendarItem control
  • Creating event-based date decorations

Localization and Formatting

📄 Read: references/localization-formatting.md

Use when:

  • Using different calendar types (Hebrew, Hijri, Korean, Thai, Persian, etc.)
  • Changing the display language (Arabic, French, Japanese, etc.)
  • Customizing editor display format (DisplayDateFormat)
  • Formatting calendar days, months, and headers
  • Changing the first day of the week
  • Implementing right-to-left (RTL) flow direction
  • Applying locale-specific date formatting
  • Supporting international date conventions

Navigation Between Views

📄 Read: references/navigation.md

Use when:

  • Enabling navigation between month, year, decade, and century views
  • Restricting navigation with MinDisplayMode and MaxDisplayMode
  • Implementing view-based selection (e.g., month/year for credit cards)
  • Understanding keyboard navigation shortcuts
  • Controlling which views users can access
  • Navigating to specific dates or view levels
  • Handling view switching in code

Restricting Date Range Selection

📄 Read: references/date-restrictions.md

Use when:

  • Setting minimum and maximum selectable dates (MinDate, MaxDate)
  • Blocking specific dates using BlackoutDates collection
  • Disabling weekend dates or holidays dynamically
  • Using ItemPrepared event for custom date restrictions
  • Limiting range duration (MinDatesCountInRange, MaxDatesCountInRange)
  • Validating selected date ranges
  • Preventing invalid date range selection
  • Customizing display text for blocked dates

Preset Items

📄 Read: references/preset-items.md

Use when:

  • Showing predefined date ranges (This Week, This Month, Last Month, This Year)
  • Creating custom preset items collection
  • Implementing PresetTemplate for custom preset UI
  • Handling preset selection events
  • Hiding calendar when preset is selected (ShowCalendar)
  • Calculating date ranges for preset items
  • Allowing custom range selection alongside presets

Week Numbers

📄 Read: references/week-numbers.md

Use when:

  • Enabling week number display (ShowWeekNumbers)
  • Configuring week number rules (FirstDay, FirstFourDayWeek, FirstFullWeek)
  • Customizing week number format with prefix/suffix
  • Using WeekNumberTemplate for custom week number appearance
  • Customizing WeekNameTemplate for day-of-week headers
  • Understanding CalendarWeekRule options
  • Applying week-based business logic

Quick Start

Basic Implementation

XAML:

<Window xmlns:calendar="using:Syncfusion.UI.Xaml.Calendar">
    <Grid>
        <calendar:SfCalendarDateRangePicker
            x:Name="sfCalendarDateRangePicker"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            PlaceholderText="Select a date range" />
    </Grid>
</Window>

C#:

using Syncfusion.UI.Xaml.Calendar;

SfCalendarDateRangePicker sfCalendarDateRangePicker = new SfCalendarDateRangePicker();
sfCalendarDateRangePicker.PlaceholderText = "Select a date range";
this.Content = sfCalendarDateRangePicker;

Setting Selected Range Programmatically

// Set a date range
sfCalendarDateRangePicker.SelectedRange = new DateTimeOffsetRange(
    new DateTimeOffset(new DateTime(2026, 3, 1)),
    new DateTimeOffset(new DateTime(2026, 3, 15))
);

// Clear selection
sfCalendarDateRangePicker.SelectedRange = null;

Handling Selection Changes

sfCalendarDateRangePicker.SelectedDateRangeChanged += (sender, e) =>
{
    var startOld = e.RangeStartOldValue;
    var startNew = e.RangeStartNewValue;
    var endOld = e.RangeEndOldValue;
    var endNew = e.RangeEndNewValue;

    // Process the new range
    if (startNew.HasValue && endNew.HasValue)
    {
        TimeSpan duration = endNew.Value - startNew.Value;
        Debug.WriteLine($"Selected range: {duration.Days} days");
    }
};

Common Patterns

Pattern 1: Date Range with Restrictions

// Restrict to future dates within 90 days
sfCalendarDateRangePicker.MinDate = DateTimeOffset.Now;
sfCalendarDateRangePicker.MaxDate = DateTimeOffset.Now.AddDays(90);
sfCalendarDateRangePicker.MinDatesCountInRange = 3;  // Minimum 3 days
sfCalendarDateRangePicker.MaxDatesCountInRange = 14; // Maximum 14 days

Pattern 2: Blocking Weekend Dates

sfCalendarDateRangePicker.ItemPrepared += (sender, e) =>
{
    if (e.ItemInfo.ItemType == CalendarItemType.Day &&
        (e.ItemInfo.Date.DayOfWeek == DayOfWeek.Saturday ||
         e.ItemInfo.Date.DayOfWeek == DayOfWeek.Sunday))
    {
        e.ItemInfo.IsBlackout = true;
    }
};

Pattern 3: With Header and Description

<calendar:SfCalendarDateRangePicker
    Header="Travel Dates"
    Description="Select your departure and return dates"
    PlaceholderText="Choose dates"
    Width="300" />

Pattern 4: Custom Display Format

// Display as full date names
sfCalendarDateRangePicker.DisplayDateFormat = "{0:D} - {1:D}";
// Example: "Saturday, March 1, 2026 - Sunday, March 15, 2026"

Pattern 5: Localized Calendar

// Hebrew calendar with RTL support
sfCalendarDateRangePicker.CalendarIdentifier = "HebrewCalendar";
sfCalendarDateRangePicker.Language = "he-IL";
sfCalendarDateRangePicker.FlowDirection = FlowDirection.RightToLeft;

Key Properties

Selection Properties

  • SelectedRange - Gets or sets the selected date range (DateTimeOffsetRange)
  • MinDatesCountInRange - Minimum number of dates in the selected range
  • MaxDatesCountInRange - Maximum number of dates in the selected range

Restriction Properties

  • MinDate - Minimum selectable date (default: 1/1/1920)
  • MaxDate - Maximum selectable date (default: 12/31/2120)
  • BlackoutDates - Collection of dates to disable

Display Properties

  • DisplayDateFormat - Format for displaying the selected range in the editor (default: "{0:d}-{1:d}")
  • PlaceholderText - Watermark text when no range is selected
  • Header - Title above the control
  • HeaderTemplate - Custom template for the header
  • Description - Helper text below the control

Calendar Properties

  • CalendarIdentifier - Calendar system (Gregorian, Hebrew, Hijri, etc.)
  • FirstDayOfWeek - Starting day of the week
  • ShowWeekNumbers - Display week numbers
  • WeekNumberRule - Rule for determining first week (FirstDay, FirstFourDayWeek, FirstFullWeek)
  • WeekNumberFormat - Format for week numbers (default: "#")

Format Properties

  • DayFormat - Format for day numbers in calendar
  • MonthFormat - Format for month names in year view
  • MonthHeaderFormat - Format for month/year header
  • DayOfWeekFormat - Format for day-of-week names

Navigation Properties

  • MinDisplayMode - Minimum view level (Month, Year, Decade, Century)
  • MaxDisplayMode - Maximum view level (Month, Year, Decade, Century)

Drop-down Properties

  • ShowDropDownButton - Show or hide the drop-down button
  • ShowSubmitButtons - Show or hide OK/Cancel buttons
  • ShowCalendar - Show or hide the calendar in drop-down
  • DropDownPlacement - Alignment of drop-down (Bottom, Top, Left, Right, Center)
  • DropDownHeight - Height of the drop-down calendar

Preset Properties

  • Preset - Collection of preset date ranges
  • PresetTemplate - Template for displaying preset items
  • PresetPosition - Position of preset items (Left, Right, Top, Bottom)

Common Use Cases

  1. Booking Systems - Hotel reservations, flight bookings, rental services
  2. Reporting Tools - Select date ranges for reports and analytics
  3. Project Management - Define project start and end dates, sprint planning
  4. Calendar Applications - Event scheduling, meeting planning
  5. Financial Applications - Select statement periods, transaction date ranges
  6. HR Systems - Leave management, vacation planning, time tracking
  7. E-commerce - Delivery date selection, promotional period setup
  8. Healthcare - Appointment scheduling, treatment duration planning

Related Skills

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.84%
按下载量换算65

Claude

29.4%
按下载量换算54

Cursor

18.67%
按下载量换算34

Gemini CLI

9.94%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills