HandlebarsTextbox.Avalonia 1.0.0-preview.0.20

This is a prerelease version of HandlebarsTextbox.Avalonia.
dotnet add package HandlebarsTextbox.Avalonia --version 1.0.0-preview.0.20
                    
NuGet\Install-Package HandlebarsTextbox.Avalonia -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.Avalonia" 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.Avalonia" Version="1.0.0-preview.0.20" />
                    
Directory.Packages.props
<PackageReference Include="HandlebarsTextbox.Avalonia" />
                    
Project file
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.Avalonia --version 1.0.0-preview.0.20
                    
#r "nuget: HandlebarsTextbox.Avalonia, 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.Avalonia@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.Avalonia&version=1.0.0-preview.0.20&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=HandlebarsTextbox.Avalonia&version=1.0.0-preview.0.20&prerelease
                    
Install as a Cake Tool

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 library
  • src/HandlebarsTextbox.Avalonia - Avalonia control library
  • tests/HandlebarsTextbox.Winforms.Test - WinForms demo/test app
  • tests/HandlebarsTextbox.Avalonia.Test - Avalonia demo/test app

Usage

WinForms

  1. Reference HandlebarsTextbox.Winforms in your project.
  2. 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

  1. Reference HandlebarsTextbox.Avalonia in your project.
  2. Add a HandlebarsTextbox to your XAML or code:
    <avalonia:HandlebarsTextbox.Suggestions>
      <avalonia:SuggestionMetadata Name="user" Type="Data" />
    
    </avalonia:HandlebarsTextbox.Suggestions>
    
    Or in code:
    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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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.

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 305 8/6/2025