|
1 | | -# AutoComplete(SfTextBoxExt) control samples |
| 1 | +# AutoComplete (SfTextBoxExt) Control Samples |
| 2 | + |
| 3 | +This repository contains curated WPF examples demonstrating features and customization patterns for the `SfTextBoxExt` autocomplete control. |
| 4 | + |
| 5 | +Overview |
| 6 | +- |
| 7 | +The samples show how to integrate `SfTextBoxExt` into desktop applications and illustrate common scenarios such as autocomplete suggestions, custom item templates, filtering strategies, selection behavior, and styling. |
| 8 | + |
| 9 | +Samples |
| 10 | +- |
| 11 | +The `Samples/` folder includes the following example projects (each is a standalone WPF project with a `MainWindow`): |
| 12 | + |
| 13 | +- `AutoComplete-and-filtering`: Demonstrates suggestion sources and filtering behavior (prefix, substring, etc.). |
| 14 | +- `Diacritic-sensitivity`: Shows handling of diacritic-insensitive matching and culture-sensitive filtering. |
| 15 | +- `Dropdown-customization`: Customizes suggestion dropdown appearance and item templates. |
| 16 | +- `Getting-Started`: Minimal integration example to quickly see `SfTextBoxExt` in action. |
| 17 | +- `ImageMemberPath`: Example of showing images/icons alongside suggestion items. |
| 18 | +- `Multipath_Search`: Contains a solution (`Multipath_Search.sln`) demonstrating multipath search scenarios. |
| 19 | +- `Single-and-multiple-selection`: Illustrates single-selection and multi-selection modes. |
| 20 | +- `Textbox-customization`: Styling and behavior customizations for the textbox control. |
| 21 | +- `TextHighlightMode`: Demonstrates different highlight strategies for matched text. |
| 22 | + |
| 23 | +Getting started |
| 24 | +- |
| 25 | +1. Open the solution or an individual project in Visual Studio 2026. |
| 26 | +2. Restore NuGet packages and build the project. If needed, restore packages from the command line: |
| 27 | + |
| 28 | +```powershell |
| 29 | +nuget restore "Multipath_Search.sln" |
| 30 | +``` |
| 31 | + |
| 32 | +Or open the project in Visual Studio and let it restore packages automatically (projects use `packages.config`). |
| 33 | + |
| 34 | +3. Run a sample project (press F5 or run the project from Visual Studio). Each sample's `MainWindow` demonstrates the specific feature. |
| 35 | + |
| 36 | +Notes & best practices |
| 37 | +- |
| 38 | +- Keep suggestion lists small or use virtualization for good responsiveness. |
| 39 | +- Use asynchronous data loading for large or remote datasets. |
| 40 | +- Customize item templates to show icons or detail lines for better UX. |
2 | 41 |
|
3 | | -This repository contains the samples that demonstrate the functionalities of SfTextBoxExt like autocomplete, customization, filtering etc. |
|
0 commit comments