WPFTextBoxAutoCompleteDerivative 0.0.0
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package WPFTextBoxAutoCompleteDerivative --version 0.0.0
NuGet\Install-Package WPFTextBoxAutoCompleteDerivative -Version 0.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPFTextBoxAutoCompleteDerivative" Version="0.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WPFTextBoxAutoCompleteDerivative" Version="0.0.0" />
<PackageReference Include="WPFTextBoxAutoCompleteDerivative" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WPFTextBoxAutoCompleteDerivative --version 0.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WPFTextBoxAutoCompleteDerivative, 0.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WPFTextBoxAutoCompleteDerivative@0.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WPFTextBoxAutoCompleteDerivative&version=0.0.0
#tool nuget:?package=WPFTextBoxAutoCompleteDerivative&version=0.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WPFTextBoxAutoCompleteDerivative
Extends the WPF TextBox
control with auto-completion suggestions.
This is based on Nimgoble's WPFTextBoxAutoComplete, and is designed for .NET Core 6
Differences
- Shortened and simplified syntax.
- Commit is now triggered when the textbox loses focus.
- Commit key can be changed from enter to another key.
Usage
Install the package via NuGet
PM> Install-Package WPFTextBoxAutoCompleteDerivative
Add a reference to the library in the
.xaml
file you want to use it in.xmlns:behaviors="clr-namespace:WPFTextBoxAutoComplete;assembly=WPFTextBoxAutoCompleteDerivative"
Create a textbox and bind the ItemsSource property to any type that implements
IEnumerable<String>
.<TextBox Width="250" HorizontalAlignment="Center" Text="{Binding TestText, UpdateSourceTrigger=PropertyChanged}" behaviors:AutoComplete.ItemsSource="{Binding TestItems}" />
Properties
Property | Type | Default | Description |
---|---|---|---|
ItemsSource |
IEnumerable<string> |
null |
Sets the source for auto completion suggestions. |
StringComparisonMode |
StringComparison |
OrdinalIgnoreCase |
Changes the string comparison type used when matching user input to possible suggestions. |
Prefix |
char? |
null |
When set to a non-null character, that character must be entered by the user for suggestions to appear. |
CommitKey |
Key |
Enter |
This changes which key the user should press to select a suggestion. |
Examples
Case-Sensitive Matching
```csharp
<TextBox
Width="250"
HorizontalAlignment="Center"
Text="{Binding TestText, UpdateSourceTrigger=PropertyChanged}"
behaviors:AutoComplete.ItemsSource="{StaticResource TestData}"
behaviors:AutoComplete.StringComparisonMode="Ordinal"
/>
```
Requires '@' prefix to show suggestions.
``` csharp
<TextBox
Width="250"
HorizontalAlignment="Center"
Text="{Binding TestText, UpdateSourceTrigger=PropertyChanged}"
behaviors:AutoComplete.ItemsSource="{Binding TestItems}"
behaviors:AutoComplete.Prefix="@"
/>
```
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net9.0-windows was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- AssemblyAttribute (>= 0.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|