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

syncfusion-wpf-datetimepicker同步融合 wpf 日期时间选择器

Agent Skill

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

总安装

989

周安装

40

GitHub Stars

2

下载量

310
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-datetimepicker

简介

同步融合 WPF 日期时间选择器组件,同时支持日期与时间的联合选取操作。

  • 适用于会议安排、日志记录等需要精确到时分秒的时间输入场景。
  • 通过 GitHub 仓库安装,采用 npx skills add 命令引入时间选择技能包。
  • 使用前请确认宿主已正确配置 WPF 及 Syncfusion DateTimePicker 控件依赖项。
  • 建议查看原始 README 了解时区转换、24 小时制切换等格式定制选项说明。

SKILL.md

Implementing DateTimeEdit (WPF)

An enhanced date-time input control with mask editing, calendar/clock dropdown, date range restriction, formatting, and MVVM binding support.

When to Use This Skill

Use this skill when the user needs to:

  • Add a date/time picker input field to a WPF application
  • Bind a selected date to a ViewModel property (DateTime two-way binding)
  • Format the displayed date/time (predefined patterns or custom patterns)
  • Restrict selectable dates with min/max range or blackout dates
  • Enable inline editing (mask mode or free-form text editing)
  • Show a calendar, clock, or combined dropdown picker
  • Display watermark text when no date is selected
  • Handle null date values
  • Apply locale-specific date formats via CultureInfo
  • Localize dropdown button labels (Today/None)

Component Overview

ClassNamespaceAssembly
DateTimeEditSyncfusion.Windows.SharedSyncfusion.Shared.WPF

XAML Namespace:

xmlns:syncfusion="http://schemas.syncfusion.com/wpf"

NuGet:

Install-Package Syncfusion.Shared.WPF

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly setup and XAML namespace
  • Add via designer, XAML, or C#
  • Setting DateTime value
  • Two-way MVVM binding with DateTimeChanged event
  • Predefined Pattern quick reference
  • MinDateTime / MaxDateTime basics
  • SfSkinManager theme setup

DateTime Editing

📄 Read: references/datetime-editing.md

  • Mask editing (default) — field-by-field input with auto-validation
  • Keyboard navigation between date/time fields
  • Free-form text editing (CanEdit="True")
  • Mouse wheel value change (EnableMouseWheelEdit)
  • Up/down repeat buttons (IsVisibleRepeatButton, IsEnabledRepeatButton)
  • Custom repeat button UI templates
  • Alpha key month navigation (EnableAlphaKeyNavigation)
  • BackSpace/Delete key editing
  • OnFocusBehavior and AutoForwarding focus control

Formatting & Culture

📄 Read: references/formatting-and-culture.md

  • All 11 predefined Pattern values
  • CustomPattern with Pattern="CustomPattern"
  • DateTimeFormat with DateTimeFormatInfo
  • CultureInfo for locale-specific formatting
  • PatternChanged / CustomPatternChanged events

Dropdown Popup

📄 Read: references/dropdown-popup.md

  • DropDownView: Calendar / Clock / Combined
  • Keyboard shortcuts (Alt+Down, F4)
  • TodayButtonAction (Date vs DateTime)
  • IsEmptyDateEnabled — None button / reset to null
  • AbbreviatedMonthNames / ShortestDayNames
  • PopupDelay, IsButtonPopUpEnabled
  • DropDownButtonTemplate custom UI
  • Custom calendar and clock (SfDateSelector / SfTimeSelector)
  • TimeStepInterval for clock

Date Restrictions & Null Values

📄 Read: references/date-restrictions.md

  • MinDateTime / MaxDateTime — prevent out-of-range selection
  • BlackoutDates — block specific date ranges
  • DisableDateSelection — month/year only
  • IsReadOnly — prevent all user edits
  • NullValue / IsEmptyDateEnabled / ShowMaskOnNullValue
  • NoneDateText watermark

Appearance

📄 Read: references/appearance.md

  • Foreground, Background, SelectionBrush
  • FocusedBorderBrush
  • FlowDirection RTL
  • Repeat button background and margins
  • SfSkinManager themes list

Localization

📄 Read: references/localization.md

  • CurrentUICulture setup
  • Resource file naming: Syncfusion.Shared.Wpf.{culture}.resx
  • Name/Value pairs for Today/None button labels
  • French culture example

Quick Start Example

<!-- MainWindow.xaml -->
<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>
    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <syncfusion:DateTimeEdit DateTime="{Binding SelectedDate, Mode=TwoWay}"
                                 Pattern="ShortDate"
                                 MinDateTime="01/01/2020"
                                 MaxDateTime="12/31/2030"
                                 Height="25" Width="200"
                                 Name="dateTimeEdit"/>
    </StackPanel>
</Window>
// ViewModel.cs
public class ViewModel : NotificationObject
{
    private DateTime _selectedDate = DateTime.Now;
    public DateTime SelectedDate
    {
        get => _selectedDate;
        set { _selectedDate = value; RaisePropertyChanged(nameof(SelectedDate)); }
    }
}

Common Patterns

ScenarioProperties / Approach
Two-way date bindingDateTime="{Binding SelectedDate, Mode=TwoWay}"
Show calendar + clockDropDownView="Combined" Pattern="FullDateTime"
Free-form text editingCanEdit="True"
Date-only range restrictionMinDateTime="..." MaxDateTime="..."
Allow null / clear valueIsEmptyDateEnabled="True" NullValue="{x:Null}" ShowMaskOnNullValue="False"
Watermark when nullAdd NoneDateText="Select a date" alongside null value properties
Custom date displayPattern="CustomPattern" CustomPattern="dd-MMM-yyyy"
Culture-aware formattingCultureInfo="fr-FR" Pattern="FullDateTime"
Read-only inputIsReadOnly="True"
RTL layoutFlowDirection="RightToLeft"
Apply themeSfSkinManager.SetVisualStyle(dte, VisualStyles.FluentLight)

Key Properties

PropertyTypeDefaultDescription
DateTimeDateTimeDateTime.NowSelected date/time value
PatternDateTimePatternShortDateDisplay format pattern
CustomPatternstringnullCustom format string (requires Pattern="CustomPattern")
CultureInfoCultureInfoSystem cultureLocale for date formatting
CanEditboolfalseEnable free-form text editing
MinDateTimeDateTimeDateTime.MinValueMinimum selectable date
MaxDateTimeDateTimeDateTime.MaxValueMaximum selectable date
DropDownViewDropDownViewsCalendarPopup content: Calendar/Clock/Combined
IsEmptyDateEnabledboolfalseAllow null date value
NullValueDateTime?nullValue when date is cleared
NoneDateTextstring""Watermark text when value is null
ShowMaskOnNullValuebooltrueShow mask vs watermark when null
IsReadOnlyboolfalsePrevent user edits
IsVisibleRepeatButtonboolfalseShow up/down spinner buttons
EnableMouseWheelEditbooltrueAllow mouse wheel to change value

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.33%
按下载量换算103

Claude

28.77%
按下载量换算89

Cursor

20.98%
按下载量换算65

Gemini CLI

9.55%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills