/syncfusion-winui:syncfusion-winui-time-pickerfrom Syncfusion WinUI Controls
Implements Syncfusion WinUI TimePicker (SfTimePicker) control for time input and selection in desktop applications. Use this when building time input controls, time selection interfaces, or dropdown time spinners. This skill covers time restrictions, time formatting, dropdown spinner customization, and time selection for scheduling and appointment scenarios in WinUI applications.
Ships in Syncfusion WinUI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive guide for implementing the Syncfusion WinUI TimePicker control in Windows desktop applications. The SfTimePicker provides an intuitive, touch-friendly interface to select time from a dropdown spinner with support for time restrictions, formatting, localization, and extensive customization.
Use this skill when you need to:
The SfTimePicker control provides a modern time selection experience for WinUI applications with:
Key Features:
Control Structure:
NuGet Package: Syncfusion.Editors.WinUI
Namespace: Syncfusion.UI.Xaml.Editors
📄 Read: references/getting-started.md
Use this reference for initial setup and basic implementation:
SelectedTime propertyAllowNull propertyHeaderTemplatePlaceholderTextSelectedTimeChanged📄 Read: references/time-restrictions.md
Use this reference for controlling time selection:
MinTime and MaxTime propertiesBlackoutTimes collectionTimeFieldPrepared event to customize time intervalsShowSubmitButtons propertySelectedTimeChanging event📄 Read: references/localization-formatting.md
Use this reference for formatting and localizing time display:
ClockIdentifierFlowDirectionLanguage propertyDisplayTimeFormatShowClearButton📄 Read: references/dropdown-customization.md
Use this reference for customizing the dropdown container:
DropDownButtonTemplateShowDropDownButton propertyDropDownPlacementIsOpen propertyDropDownHeight propertyVisibleItemsCount property📄 Read: references/dropdown-header-customization.md
Use this reference for customizing the dropdown header:
DropDownHeader propertyShowDropDownHeader propertyDropDownHeaderTemplateShowColumnHeaders property📄 Read: references/dropdown-spinner-customization.md
Use this reference for customizing dropdown spinner cells and columns:
ItemWidth and ItemHeight propertiesMinItemWidth and MaxItemWidthItemContainerStyle propertyItemTemplateItemTemplateSelectorTimeFieldPrepared eventXAML:
<Window xmlns:editors="using:Syncfusion.UI.Xaml.Editors">
<Grid>
<editors:SfTimePicker
x:Name="sfTimePicker"
Header="Select Time"
PlaceholderText="Pick a time"
Width="250" />
</Grid>
</Window>
C#:
using Syncfusion.UI.Xaml.Editors;
// Create TimePicker programmatically
SfTimePicker timePicker = new SfTimePicker();
timePicker.Header = "Select Time";
timePicker.PlaceholderText = "Pick a time";
// Set selected time
timePicker.SelectedTime = new DateTimeOffset(
new DateTime(2024, 1, 1, 14, 30, 0));
// Handle time changed event
timePicker.SelectedTimeChanged += (s, e) => {
var oldTime = e.OldDateTime;
var newTime = e.NewDateTime;
// Handle time change
};
Restrict time selection to business hours (9 AM - 5 PM):
// Requires: using Syncfusion.UI.Xaml.Editors;
sfTimePicker.MinTime = new DateTimeOffset(
new DateTime(DateTime.Now.Year, DateTime.Now.Month,
DateTime.Now.Day, 9, 0, 0));
sfTimePicker.MaxTime = new DateTimeOffset(
new DateTime(DateTime.Now.Year, DateTime.Now.Month,
DateTime.Now.Day, 17, 0, 0));
Switch to 24-hour clock format:
<editors:SfTimePicker
ClockIdentifier="24HourClock"
DisplayTimeFormat="HH:mm" />
Allow only 15-minute intervals:
using System.Collections.ObjectModel;
using Syncfusion.UI.Xaml.Editors;
sfTimePicker.TimeFieldPrepared += (s, e) => {
if (e.Column?.Field == DateTimeField.Minute) {
var minutes = new ObservableCollection<string>();
for (int i = 0; i < 60; i += 15) {
minutes.Add(i.ToString("00"));
}
e.Column.ItemsSource = minutes;
}
};
Prevent selection during lunch break (12 PM - 1 PM):
using Syncfusion.UI.Xaml.Editors;
var blackoutTimes = new DateTimeOffsetCollection();
for (int minute = 0; minute < 60; minute++) {
blackoutTimes.Add(new DateTimeOffset(
new DateTime(DateTime.Now.Year, DateTime.Now.Month,
DateTime.Now.Day, 12, minute, 0)));
}
sfTimePicker.BlackoutTimes = blackoutTimes;
| Property | Type | Description |
|---|---|---|
SelectedTime | DateTimeOffset? | Gets or sets the selected time value |
MinTime | DateTimeOffset | Minimum selectable time (default: 1/1/1921 10:37:16 PM) |
MaxTime | DateTimeOffset | Maximum selectable time (default: 12/31/2121 10:37:16 PM) |
BlackoutTimes | DateTimeOffsetCollection | Collection of times to disable from selection |
AllowNull | bool | Allows null value for SelectedTime (default: false) |
PlaceholderText | string | Watermark text shown when SelectedTime is null |
| Property | Type | Description |
|---|---|---|
ClockIdentifier | string | Clock format: "12HourClock" or "24HourClock" |
DisplayTimeFormat | string | Format pattern for displaying time (e.g., "hh:mm tt", "HH:mm") |
EditMode | DateTimeEditMode | Edit mode: Mask (auto-correct) or Normal (validate on Enter) |
ShowClearButton | bool | Shows/hides the clear button (default: true) |
| Property | Type | Description |
|---|---|---|
ShowDropDownButton | bool | Shows/hides dropdown button (default: true) |
DropDownButtonTemplate | DataTemplate | Template for customizing dropdown button |
DropDownPlacement | FlyoutPlacementMode | Dropdown alignment (Auto, Bottom, Top, etc.) |
IsOpen | bool | Opens/closes dropdown programmatically |
DropDownHeight | double | Fixed height for dropdown spinner |
VisibleItemsCount | int | Number of visible items in dropdown (default: -1) |
| Property | Type | Description |
|---|---|---|
ShowDropDownHeader | bool | Shows/hides dropdown header (default: false) |
DropDownHeader | object | Content for dropdown header |
DropDownHeaderTemplate | DataTemplate | Template for dropdown header customization |
ShowColumnHeaders | bool | Shows/hides column headers in spinner (default: true) |
| Property | Type | Description |
|---|---|---|
ItemWidth | double | Width of spinner cells (default: 80) |
ItemHeight | double | Height of spinner cells (default: 40) |
MinItemWidth | double | Minimum width for spinner cells (default: 0) |
MaxItemWidth | double | Maximum width for spinner cells (default: Infinity) |
ItemContainerStyle | Style | Style applied to all spinner cells |
ItemTemplate | DataTemplate | Template for spinner cell content |
ItemTemplateSelector | DataTemplateSelector | Conditional templates for spinner cells |
| Event | Description |
|---|---|
SelectedTimeChanged | Fires after SelectedTime changes, provides old and new values |
SelectedTimeChanging | Fires before SelectedTime updates, allows cancellation |
TimeFieldPrepared | Fires when dropdown spinner columns are prepared, allows customization |
Use TimePicker for booking appointments with restricted business hours, blocked lunch times, and 15-30 minute intervals.
Implement time input in forms with validation, nullable times, and custom formats based on user locale.
Create shift time selectors with restricted ranges (e.g., morning: 6AM-2PM, evening: 2PM-10PM, night: 10PM-6AM).
Build meeting time pickers with blackout times for existing meetings and custom intervals (30 min or 1 hour slots).
Use TimePicker for setting alarm times, countdown timers, or reminder schedules with 24-hour format.
Implement time selection with right-to-left layout for Arabic/Hebrew languages and locale-specific formats.
Create specialized time pickers for industries requiring specific intervals (e.g., transportation schedules, medical appointments).
references/dropdown-customization.md (opens in a new tab)references/dropdown-header-customization.md (opens in a new tab)references/dropdown-spinner-customization.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/localization-formatting.md (opens in a new tab)references/time-restrictions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
39 skills in this plugin
/syncfusion-winui-ai-assistviewGuide for implementing the Syncfusion WinUI AI AssistView control for creating AI chat interfaces and conversational UI. Use this skill when implementing AI chat interfaces, AI assistants, conversational UI, or chatbots in WinUI applications. Essential for creating AI-powered chat experiences, integrating AI services, displaying AI responses, showing typing indicators, providing AI suggestions, managing conversation history with a navigation view, customizing empty states with EmptyView/EmptyViewTemplate, or setting input placeholder text in conversational interfaces with AI services in WinUI./syncfusion-winui-autocompleteGuide implementation of the Syncfusion WinUI AutoComplete control (SfAutoComplete) for creating searchable dropdowns with single or multiple selection, filtering suggestions, and customizable token display. Use this skill when implementing search-as-you-type functionality, autocomplete dropdowns with multi-select, tagging systems with token/chip display, or filtered suggestion boxes in WinUI applications./syncfusion-winui-avatar-viewGuide for implementing the Syncfusion WinUI AvatarView control to display user avatars and profile pictures. Use this when implementing user profiles, contact lists, or chat interfaces requiring visual user representation in WinUI applications. This skill covers initials display, image avatars, group avatars, and pre-defined avatar characters.npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winui