# GitHub Examples

> The TX Spell .NET repositories on GitHub for WPF developers: the TXSpell samples that apply to WPF, the Windows Forms ones, and how to run and update a sample.

- **Product:** TX Spell .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Spell .NET for WPF > Examples > GitHub Examples
- **1222 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/github/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/github/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/github/llms-full.txt

---

The GitHub organization [TextControl](https://github.com/TextControl) has no WPF application with TX Spell .NET: the WPF samples come with the setup, and [Spell Checking Examples](https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/spell-checking/llms-full.txt) lists them. A few repositories still help a WPF developer, because they use the [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/llms-full.txt) class, which checks text without a user interface and is part of TX Spell .NET for WPF as well.

### Samples That Apply to WPF

| Example | What it shows | Where |
|---|---|---|
| Spell checking Web API | An ASP.NET Core Web API that checks text, creates suggestions and synonyms and detects languages with `TXSpell`, as described in [Building a Spell Checking Web API in ASP.NET Core](https://www.textcontrol.com/blog/2020/05/15/building-a-spell-checking-web-api-in-aspnet-core/). `TXTextControl.TXSpell.Core.SDK` 11.0.0, .NET 8, C# | [TXTextControl.Core.Spell.WebAPI](https://github.com/TextControl/TXTextControl.Core.Spell.WebAPI) |
| Validation in ASP.NET Web Forms | A validator that checks the text of a form field on the server with `TXSpell` and shows the first suggestion, as described in [Using TX Spell .NET in ASP.NET](https://www.textcontrol.com/blog/2011/11/21/using-tx-spell-net-in-aspnet/). TX Spell .NET 10.0, .NET Framework 4.0, C# | [TXSpell.Web](https://github.com/TextControl/TXSpell.Web) |

The code that calls `TXSpell` works the same way in a WPF application; only the user interface around it differs.

### Document Editor Sample

The Document Editor of TX Text Control .NET Server gets its spell checker from `TXTextControl.TXSpell.Core.SDK`, which is part of TX Spell .NET for WPF as well. This repository manages the user dictionaries of the editor:

| Example | What it shows | Where |
|---|---|---|
| User dictionaries in the Document Editor | An ASP.NET MVC application with the Document Editor of TX Text Control .NET Server that lists the user dictionaries (*.txd*) stored on the server, loads the chosen one into the editor with [loadUserDictionary](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/loaduserdictionary-method/llms-full.txt) and [saveUserDictionary](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-proofing/saveuserdictionary-method/llms-full.txt) of the JavaScript API, and saves the words users added back to the server through a Web API, as described in [Loading and Saving User Dictionaries in TextControl.Web](https://www.textcontrol.com/blog/2019/07/19/loading-and-saving-user-dictionaries-in-textcontrol-web/). `TXTextControl.Web` 33.0.0, .NET Framework 4.8, C# and JavaScript | [TextControl.Web.MVC.UserDictionary](https://github.com/TextControl/TextControl.Web.MVC.UserDictionary) |

### Windows Forms Samples

These repositories are Windows Forms applications. The techniques carry over to WPF, but the code uses the Windows Forms controls:

| Example | What it shows | Where |
|---|---|---|
| AutoCorrect of two initial capitals | A word that starts with two capital letters is corrected while the user types in TX Text Control, as described in [AutoCorrect: TWo INitial CApitals](https://www.textcontrol.com/blog/2014/07/24/autocorrect-two-initial-capitals/). TX Spell .NET 11.0 with TX Text Control 34.0 for Windows Forms | [TextControl.Spelling.AutoCorrect](https://github.com/TextControl/TextControl.Spelling.AutoCorrect) |
| Interactive suggestions | A panel of suggestions below a misspelled word while the user types, as described in [Interactive Spelling Suggestions Using TX Spell .NET](https://www.textcontrol.com/blog/2014/07/30/interactive-spelling-suggestions-using-tx-spell-net/). TX Spell .NET 11.0 with TX Text Control 33.0 for Windows Forms | [TextControl.Spelling.AutoText](https://github.com/TextControl/TextControl.Spelling.AutoText) |

### Run a Sample

Clone the repository and open the solution or project file at its root in Visual Studio. The Web API is a .NET 8 project in the folder *txspellwebapi*, which the .NET CLI builds and runs:

```bash
git clone https://github.com/TextControl/TXTextControl.Core.Spell.WebAPI.git
cd TXTextControl.Core.Spell.WebAPI/txspellwebapi
dotnet restore
dotnet run
```

None of the repositories contains a *nuget.config* file. The Web API gets `TXTextControl.TXSpell.Core.SDK` from the package source **Text Control Offline Packages** that the setup adds; see [Configuring Package Sources](https://docs.textcontrol.com/tx-spell-dotnet-wpf/installation/nuget/sources/llms-full.txt). The other samples reference the assemblies of TX Spell .NET directly.

### Update an Older Sample

- **Assembly references.** The .NET Framework samples reference the assemblies of version 10.0 or 11.0, some with a path to an earlier installation directory. Remove the references and add them again from the *Assembly* folder of your installation.
- **NuGet packages.** A WPF project on .NET uses `TXTextControl.TXSpell.WPF.SDK`, and a project without a user interface `TXTextControl.TXSpell.Core.SDK`. The packages of version 11.0 require .NET 8 or higher. Update them to the current version, 11.0.1. See [Package Overview](https://docs.textcontrol.com/tx-spell-dotnet-wpf/installation/nuget/packages/llms-full.txt).
- **Breaking changes.** [Breaking Changes](https://docs.textcontrol.com/tx-spell-dotnet-wpf/whats-new/breaking-changes/llms-full.txt) lists what changed between the versions.

[Upgrading from Previous Versions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/installation/upgrading/previous-versions/llms-full.txt) describes the move of a project to the current version.

### Next Steps

- [Spell Checking Examples](https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/spell-checking/llms-full.txt): the WPF samples of the setup.
- [Dictionary and Language Examples](https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/dictionaries/llms-full.txt): dictionaries, hyphenation, synonyms and language detection.
- [Getting Started](https://docs.textcontrol.com/tx-spell-dotnet-wpf/getting-started/llms-full.txt): build a first WPF application with the spell checker.

---

## Nearby

- **Previous:** [Examples](https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/llms-full.txt)
- **Next:** [Spell Checking Examples](https://docs.textcontrol.com/tx-spell-dotnet-wpf/examples/spell-checking/llms-full.txt)
