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

syncfusion-wpf-spellchecker同步融合 WPF 拼写检查器

Agent Skill

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

总安装

1,008

周安装

42

GitHub Stars

2

下载量

336
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

  • 适合围绕仓库状态、代码变更或协作事项进行信息整理。
  • 可结合来源仓库和 README 进一步核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 注意避免在不具备相应权限时执行写回或批量操作。syncfusion-wpf-spellchecker 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF SpellChecker

SfSpellChecker provides a simple and intuitive interface to check for spelling errors in WPF text editor controls. It offers suggestions for misspelled words through dialog and context menu, supports multiple languages/cultures, custom dictionaries, and various ignore options.

When to Use This Skill

Use this skill when you need to:

  • Add spell checking capability to WPF TextBox, RichTextBox, or other text editor controls
  • Implement dialog-based or context menu-based spell checking
  • Support multiple languages and cultures in spell checking
  • Add custom dictionaries (Hunspell, Ispell, or OpenOffice formats)
  • Configure ignore rules for emails, URLs, HTML tags, mixed case words, etc.
  • Provide real-time spelling suggestions to users
  • Customize spell checker appearance with themes
  • Handle spell check completion events

Component Overview

Control: SfSpellChecker (Syncfusion.Windows.Controls.SfSpellChecker) Platform: WPF Namespace: Syncfusion.Windows.Controls Assembly: Syncfusion.SfSpellChecker.WPF

Key Capabilities:

  • Dialog-based spell checking with suggestion list
  • Context menu suggestions with right-click on error words
  • Multi-language support with custom dictionaries
  • Ignore options for special text patterns
  • Custom word dictionary support
  • Real-time error highlighting
  • Replace, Ignore All, Add to Dictionary actions

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly deployment
  • Adding SfSpellChecker to an application
  • Attaching spell checker to TextBox
  • First spell check with dialog
  • Context menu setup
  • Enable/disable spell checking
  • Getting suggestions programmatically

Spell Check Methods

📄 Read: references/spell-check-methods.md

  • Dialog-based spell checking
  • Context menu-based suggestions
  • PerformSpellCheckUsingDialog method
  • Error word highlighting
  • Replace and ignore operations
  • Add to Dictionary functionality

Ignore Options

📄 Read: references/ignore-options.md

  • Ignoring email addresses
  • Ignoring URLs and internet addresses
  • Ignoring HTML tags
  • Ignoring mixed case words
  • Ignoring uppercase words
  • Ignoring alphanumeric words
  • Configuration examples

Dictionary Support

📄 Read: references/dictionary-support.md

  • Default English dictionary
  • Multi-language spell checking
  • Hunspell dictionary format
  • Ispell dictionary format
  • OpenOffice dictionary format
  • Adding custom dictionaries
  • Custom word lists
  • Switching culture at runtime
  • DictionaryCollection management

Customization and Theming

📄 Read: references/customization.md

  • SpellCheckCompleted event
  • Restricting completion message box
  • Theme support with SfSkinManager
  • ThemeStudio customization
  • Visual appearance options

Quick Start

Basic Setup with Dialog

<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
    <Grid>
        <StackPanel>
            <TextBox
                Text="Ths is a sampel text with speling errors."
                Name="textbox"
                TextWrapping="Wrap">

                <!--Attach SpellChecker to TextBox-->
                <syncfusion:SfSpellChecker.SpellChecker>
                    <syncfusion:SfSpellChecker
                        x:Name="spellChecker"
                        EnableSpellCheck="True"/>
                </syncfusion:SfSpellChecker.SpellChecker>
            </TextBox>

            <Button
                Content="Spell Check"
                Click="SpellCheck_ButtonClick"
                HorizontalAlignment="Center"/>
        </StackPanel>
    </Grid>
</Window>
// Code-behind
private void SpellCheck_ButtonClick(object sender, RoutedEventArgs e)
{
    spellChecker.PerformSpellCheckUsingDialog();
}

Quick Setup with Context Menu

<syncfusion:SfSpellChecker
    x:Name="spellChecker"
    EnableSpellCheck="True"
    EnableContextMenu="True"/>

Users can right-click on error words (red underlined) to see suggestions.

Common Patterns

Pattern 1: Basic Spell Check with Dialog

// Create spell checker instance
SfSpellChecker spellChecker = new SfSpellChecker();
spellChecker.EnableSpellCheck = true;

// Attach to TextBox
SfSpellChecker.SetSpellChecker(textbox, spellChecker);

// Open spell check dialog
spellChecker.PerformSpellCheckUsingDialog();

Pattern 2: Context Menu with Ignore Options

SfSpellChecker spellChecker = new SfSpellChecker();
spellChecker.EnableSpellCheck = true;
spellChecker.EnableContextMenu = true;

// Configure ignore options
spellChecker.IgnoreUrl = true;
spellChecker.IgnoreEmailAddress = true;
spellChecker.IgnoreUpperCaseWords = true;

SfSpellChecker.SetSpellChecker(textbox, spellChecker);

Pattern 3: Multi-Language Support

// Create culture-specific spell checker
CultureInfo culture = new CultureInfo("fr-FR");
SfSpellChecker spellChecker = new SfSpellChecker();

// Add French dictionary
spellChecker.Dictionaries = new DictionaryCollection();
spellChecker.Dictionaries.Add(
    new HunspellDictionary()
    {
        Culture = culture,
        GrammarUri = new Uri("/MyApp;component/Dictionaries/fr-FR.aff", UriKind.Relative),
        DictionaryUri = new Uri("/MyApp;component/Dictionaries/fr-FR.dic", UriKind.Relative)
    }
);

spellChecker.Culture = culture;
SfSpellChecker.SetSpellChecker(textbox, spellChecker);

Pattern 4: Custom Dictionary

// Add custom words dictionary
Uri customDictUri = new Uri(Directory.GetCurrentDirectory() +
                           @"\Dictionaries\CustomWords.txt", UriKind.Absolute);

spellChecker.Dictionaries.Add(
    new CustomDictionary()
    {
        Culture = new CultureInfo("en-US"),
        DictionaryUri = customDictUri
    }
);

Pattern 5: Handle Spell Check Completion

spellChecker.SpellCheckCompleted += (sender, e) =>
{
    // Suppress default message box
    (e as SpellCheckCompletedEventArgs).ShowMessageBox = false;

    // Custom completion logic
    MessageBox.Show("Spell check completed!", "Done");
};

Key Properties

PropertyTypeDescription
EnableSpellCheckboolEnable/disable spell checking (default: true)
EnableContextMenuboolEnable context menu suggestions (default: true)
CultureCultureInfoCulture for spell checking
DictionariesDictionaryCollectionCollection of dictionaries
IgnoreUrlboolIgnore internet addresses
IgnoreEmailAddressboolIgnore email addresses
IgnoreHtmlTagsboolIgnore HTML tags
IgnoreMixedCaseWordsboolIgnore mixed case words (e.g., AbCDeFH)
IgnoreUpperCaseWordsboolIgnore all uppercase words
IgnoreAlphaNumericWordsboolIgnore words with numbers

Key Methods

MethodDescription
PerformSpellCheckUsingDialog()Opens spell check dialog
GetSuggestions(string word)Gets suggestion list for error word
GetPhoneticWords(string word)Gets phonetic word suggestions
GetAnagrams(string word)Gets anagram suggestions

Common Use Cases

  1. Text Editor with Spell Check - Add comprehensive spell checking to WPF text editors
  2. Multi-Language Document Editor - Support multiple languages with culture-specific dictionaries
  3. Custom Domain Dictionary - Add industry-specific or company-specific terms
  4. Email Client - Spell check with email/URL ignore options
  5. HTML Editor - Spell check while ignoring HTML markup
  6. Form Validation - Validate text input fields for spelling errors
  7. Accessible Text Input - Provide context menu for easy error correction

Sample Applications

GitHub samples: WPF SpellChecker Examples

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.38%
按下载量换算112

Claude

32.38%
按下载量换算109

Cursor

17.66%
按下载量换算59

Gemini CLI

9.27%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills