Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

syncfusion-winui-autocompleteSynfusion WinUI 自动完成

Agent Skill

syncfusion-winui-autocomplete 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

594

周安装

25

GitHub Stars

公开资料未说明

下载量

208
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/winui-ui-components-skills --skill syncfusion-winui-autocomplete

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-winui-autocomplete 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing AutoComplete (SfAutoComplete)

The Syncfusion WinUI AutoComplete (SfAutoComplete) is a highly optimized control for providing filtered suggestions from large datasets as users type. It supports both single and multiple item selection, displaying selected items as tokens with images, text, and close buttons for easy removal.

When to Use This Skill

Use this skill when the user needs to:

  • Implement autocomplete search functionality in WinUI applications
  • Create searchable dropdowns with filtered suggestions based on user input
  • Build tag or token input fields with multi-select capability
  • Filter large datasets based on characters entered by the user
  • Provide search-as-you-type experiences with auto-suggestions
  • Implement multi-select dropdowns with chip/token display
  • Add watermark text to guide user input in search fields
  • Customize suggestion item display with images and custom templates
  • Handle "no results found" scenarios with custom messaging
  • Add leading/trailing icons or buttons to autocomplete inputs

Component Overview

Package: Syncfusion.Editors.WinUI Namespace: Syncfusion.UI.Xaml.Editors Control: SfAutoComplete

Key Capabilities:

  • Single and multiple selection modes
  • Real-time filtering (StartsWith or Contains)
  • Custom filtering logic support
  • Token/chip display for selected items
  • Highlighting of matched text
  • Grouping of suggestions
  • Leading and trailing views
  • Watermark/placeholder text
  • Keyboard navigation
  • Template customization

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When the user needs to:

  • Install the AutoComplete package
  • Create and configure the control
  • Set up data binding with ItemsSource
  • Configure TextMemberPath and DisplayMemberPath
  • Implement basic autocomplete functionality

Selection

📄 Read: references/selection.md

When the user needs to:

  • Configure single vs multiple selection
  • Handle selected items programmatically
  • Display tokens/chips for multiple selections
  • Listen to selection change events
  • Work with SelectedItem or SelectedItems properties

Searching and Filtering

📄 Read: references/searching-filtering.md

When the user needs to:

  • Configure filtering behavior (StartsWith or Contains)
  • Implement custom filtering logic
  • Search based on specific properties
  • Handle auto-fill and auto-suggestions
  • Select default items after filtering

UI Customization

📄 Read: references/ui-customization.md

When the user needs to:

  • Customize dropdown item templates
  • Add leading icons or buttons
  • Add trailing actions or clear buttons
  • Style selected item tokens
  • Handle "no results found" UI
  • Set watermark/placeholder text

Advanced Features

📄 Read: references/advanced-features.md

When the user needs to:

  • Group suggestions by category
  • Highlight matched text in suggestions
  • Implement keyboard shortcuts
  • Ensure accessibility compliance
  • Handle advanced user interactions

Quick Start Example

Basic Single-Selection AutoComplete

<Window xmlns:editors="using:Syncfusion.UI.Xaml.Editors">
    <Grid>
        <editors:SfAutoComplete x:Name="autoComplete"
                                Width="250"
                                PlaceholderText="Search social media..."
                                ItemsSource="{Binding SocialMedias}"
                                DisplayMemberPath="Name"
                                TextMemberPath="Name"
                                TextSearchMode="Contains" />
    </Grid>
</Window>
// Model
public class SocialMedia
{
    public string Name { get; set; }
    public int ID { get; set; }
}

// ViewModel
public class SocialMediaViewModel
{
    public ObservableCollection<SocialMedia> SocialMedias { get; set; }

    public SocialMediaViewModel()
    {
        SocialMedias = new ObservableCollection<SocialMedia>
        {
            new SocialMedia { Name = "Facebook", ID = 0 },
            new SocialMedia { Name = "Instagram", ID = 1 },
            new SocialMedia { Name = "Twitter", ID = 2 },
            new SocialMedia { Name = "LinkedIn", ID = 3 }
        };
    }
}

// Set DataContext
autoComplete.DataContext = new SocialMediaViewModel();

Multi-Selection with Tokens

<editors:SfAutoComplete x:Name="autoComplete"
                        Width="300"
                        SelectionMode="Multiple"
                        PlaceholderText="Select multiple items..."
                        ItemsSource="{Binding SocialMedias}"
                        DisplayMemberPath="Name"
                        TextMemberPath="Name"
                        TextSearchMode="Contains" />

Common Patterns

Pattern 1: Search with Contains Filter

<editors:SfAutoComplete ItemsSource="{Binding Countries}"
                        DisplayMemberPath="Name"
                        TextMemberPath="Name"
                        TextSearchMode="Contains"
                        PlaceholderText="Type to search..." />

Use when users need to find items by any part of the text, not just the beginning.

Pattern 2: Multi-Select Tags with Custom Display

<editors:SfAutoComplete SelectionMode="Multiple"
                        ItemsSource="{Binding Tags}"
                        DisplayMemberPath="Name"
                        TextMemberPath="Name">
    <editors:SfAutoComplete.ItemTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal" Padding="5">
                <TextBlock Text="{Binding Name}"
                          FontWeight="SemiBold"/>
            </StackPanel>
        </DataTemplate>
    </editors:SfAutoComplete.ItemTemplate>
</editors:SfAutoComplete>

Use for tagging systems where users select multiple items displayed as tokens.

Pattern 3: Autocomplete with Leading Icon

<editors:SfAutoComplete ItemsSource="{Binding Items}"
                        DisplayMemberPath="Name"
                        TextMemberPath="Name">
    <editors:SfAutoComplete.LeadingView>
        <Grid Padding="8">
            <Path Data="M15.5 14h-.79l-.28-.27C15.41..."
                  Fill="{ThemeResource SystemAccentColor}"/>
        </Grid>
    </editors:SfAutoComplete.LeadingView>
</editors:SfAutoComplete>

Use to provide visual context (e.g., search icon) for the autocomplete field.

Pattern 4: Custom "No Results" Message

<editors:SfAutoComplete ItemsSource="{Binding Products}"
                        DisplayMemberPath="Name"
                        TextMemberPath="Name"
                        NoResultsFoundContent="No products found. Try a different search." />

Use to provide helpful feedback when filtering returns no matches.

Key Properties

PropertyTypeDescription
ItemsSourceobjectCollection of data items to display
DisplayMemberPathstringProperty path for dropdown item display
TextMemberPathstringProperty path for selection box text
SelectionModeAutoCompleteSelectionModeSingle or Multiple selection
TextSearchModeAutoCompleteTextSearchModeStartsWith or Contains filtering
PlaceholderTextstringWatermark text when empty
SelectedItemobjectCurrently selected item (single mode)
SelectedItemsObservableCollectionSelected items collection (multiple mode)
NoResultsFoundContentobjectContent when no matches found
LeadingViewobjectContent displayed before text input
TrailingViewobjectContent displayed after text input
GroupMemberPathstringProperty path for grouping items
HighlightedTextColorBrushColor for highlighting matched text
FilterBehaviorAutoCompleteFilterBehaviorCustom filtering logic

Common Use Cases

Email Recipient Selector

Multi-select autocomplete for selecting email recipients from a contact list, displaying selected contacts as removable tokens.

Product Search

Single-select autocomplete for finding products in an e-commerce app, with contains-based filtering for flexible searching.

Category Tagging

Multi-select autocomplete for assigning multiple categories or tags to items, with custom token display.

Location Search

Single-select autocomplete with grouped suggestions (Countries > Cities), using StartsWith filtering for quick navigation.

Skill Search

Multi-select autocomplete for selecting user skills from a predefined list, with "no results" message for unrecognized entries.

Related Components

  • ComboBox - For simple dropdown selection without autocomplete filtering
  • TextBox - For basic text input without suggestions (if documented)

Integration Tips

With MVVM:

  • Bind ItemsSource to ViewModel's ObservableCollection
  • Use SelectedItem or SelectedItems with two-way binding
  • Handle selection changes in ViewModel via binding commands

Performance:

  • Use virtualization for large datasets (>1000 items)
  • Consider async loading for remote data sources
  • Use TextSearchMode.StartsWith for better performance with very large lists

Accessibility:

  • Always set PlaceholderText to guide users
  • Use AutomationProperties.Name for screen readers
  • Ensure keyboard navigation works (Tab, Enter, Esc)
  • Test with high contrast themes

Troubleshooting Quick Fixes

IssueSolution
Suggestions not showingCheck ItemsSource is bound and contains data; verify DisplayMemberPath
Wrong text displayedSet TextMemberPath to the correct property name
Filtering not workingEnsure TextSearchMode is set; verify property data types are strings
Multiple selection not workingSet SelectionMode="Multiple"
Custom template not appliedCheck ItemTemplate DataContext binding matches data model
No results message not showingSet NoResultsFoundContent property

Next Steps: For detailed implementation, navigate to the specific reference file matching your needs using the documentation guide above.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.83%
按下载量换算81

Claude

28.1%
按下载量换算58

Cursor

19.05%
按下载量换算40

Gemini CLI

9.84%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills