HandlebarsTextbox.Winforms
1.0.0-preview.0.20
This is a prerelease version of HandlebarsTextbox.Winforms.
dotnet add package HandlebarsTextbox.Winforms --version 1.0.0-preview.0.20
NuGet\Install-Package HandlebarsTextbox.Winforms -Version 1.0.0-preview.0.20
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="HandlebarsTextbox.Winforms" Version="1.0.0-preview.0.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HandlebarsTextbox.Winforms" Version="1.0.0-preview.0.20" />
<PackageReference Include="HandlebarsTextbox.Winforms" />
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 HandlebarsTextbox.Winforms --version 1.0.0-preview.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HandlebarsTextbox.Winforms, 1.0.0-preview.0.20"
#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 HandlebarsTextbox.Winforms@1.0.0-preview.0.20
#: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=HandlebarsTextbox.Winforms&version=1.0.0-preview.0.20&prerelease
#tool nuget:?package=HandlebarsTextbox.Winforms&version=1.0.0-preview.0.20&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HandlebarsTextbox
Auto-complete TextBox controls for Handlebars markup, supporting both WinForms (.NET 8) and Avalonia (.NET 8).
Overview
This repository provides reusable class libraries for integrating Handlebars-aware auto-complete textboxes into your .NET applications. It supports:
- WinForms:
HandlebarsTextbox.Winforms
(Windows Forms) - Avalonia:
HandlebarsTextbox.Avalonia
(cross-platform UI)
Both controls offer:
- Auto-complete for Handlebars helpers, block helpers, partials, and data fields
- Hierarchical/nested suggestions
- Auto-closing of
{{
with}}
- Tab-to-exit bracket navigation
Projects
src/HandlebarsTextbox.Winforms
- WinForms control librarysrc/HandlebarsTextbox.Avalonia
- Avalonia control librarytests/HandlebarsTextbox.Winforms.Test
- WinForms demo/test apptests/HandlebarsTextbox.Avalonia.Test
- Avalonia demo/test app
Usage
WinForms
- Reference
HandlebarsTextbox.Winforms
in your project. - Add a
HandlebarsTextbox
to your form:var textbox = new HandlebarsTextbox.Winforms.HandlebarsTextbox(); textbox.Suggestions.Add(new SuggestionMetadata { Name = "user", Type = SuggestionType.Data }); // Add more suggestions as needed this.Controls.Add(textbox);
Avalonia
- Reference
HandlebarsTextbox.Avalonia
in your project. - Add a
HandlebarsTextbox
to your XAML or code:
Or in code:<avalonia:HandlebarsTextbox.Suggestions> <avalonia:SuggestionMetadata Name="user" Type="Data" /> </avalonia:HandlebarsTextbox.Suggestions>
var textbox = new HandlebarsTextbox.Avalonia.HandlebarsTextbox(); textbox.Suggestions.Add(new SuggestionMetadata { Name = "user", Type = SuggestionType.Data }); // Add more suggestions as needed
Features
- Auto-complete: Shows relevant suggestions as you type inside
{{ ... }}
- Bracket handling: Auto-closes brackets and allows tabbing out
- Customizable suggestions: Add helpers, block helpers, partials, and nested data fields
- Cross-platform: Avalonia support for Windows, Linux, macOS
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. 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.
-
net8.0-windows7.0
- No dependencies.
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 |
---|---|---|
1.0.0-preview.0.20 | 200 | 8/6/2025 |