Blazonia 0.0.0-alpha.0.894

This is a prerelease version of Blazonia.
dotnet add package Blazonia --version 0.0.0-alpha.0.894
                    
NuGet\Install-Package Blazonia -Version 0.0.0-alpha.0.894
                    
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="Blazonia" Version="0.0.0-alpha.0.894" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Blazonia" Version="0.0.0-alpha.0.894" />
                    
Directory.Packages.props
<PackageReference Include="Blazonia" />
                    
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 Blazonia --version 0.0.0-alpha.0.894
                    
#r "nuget: Blazonia, 0.0.0-alpha.0.894"
                    
#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 Blazonia@0.0.0-alpha.0.894
                    
#: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=Blazonia&version=0.0.0-alpha.0.894&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Blazonia&version=0.0.0-alpha.0.894&prerelease
                    
Install as a Cake Tool

🪢 Blazonia

Nuget

🤔 What is this?

Blazonia enables developers to use the <a href="https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor">Blazor</a> syntax to build <a href="https://avaloniaui.net/">Avalonia</a> applications. Compared to Avalonia’s original XAML syntax, Blazonia’s Blazor-based approach is more concise and straightforward, allowing you to develop pages using a single file. It is particularly suitable for small to medium-sized client applications.

Note

  • 🚫 After using Blazonia, there will be no HTML code or WebView components involved.
  • 🤩 Fully utilizes native Avalonia controls

Thanks to Avalonia's cross-platform capabilities, Blazonia enables developers to rapidly build beautiful, pixel-perfect applications for 💻 desktop, 📱 mobile, and 🌐 web platforms.

🌰 A Simple Example

@page "/"

<Window Title="Counter" Width="600" Height="400">
    <StackPanel>
        <Label FontSize="30">You pressed @_count times </Label>
        <CheckBox @bind-IsChecked="_showButton">Button visible</CheckBox>
        @if (_showButton! == true)
        {
            <Button OnClick="OnButtonClick">+1</Button>
        }
    </StackPanel>
</Window>

@code {

    int _count;
    
    bool? _showButton = true;
    
    void OnButtonClick() => _count++;
}

Counter

🛫 Start

  1. Install project template
dotnet new install BlazoniaTemplate

  1. Create a new project
dotnet new blazonia -o BlazoniaApp

Please use Rider to edit the project, because the code hints of razor files in Visual Studio 2022 and VS Code may fail.

📄 Acknowledge

Blazonia is a fork of the https://github.com/Epictek/Avalonia-Blazor-Bindings branch, maintained by developers including Microsoft, Dreamescaper, warappa, and Epictek.

Blazor's syntax is highly approachable and beginner-friendly. However, since the original repository appears to be inactive, I will continue to maintain this project. As the original name is already taken on NuGet, I have renamed it to Blazonia (Blazor + Avalonia) to facilitate publishing the NuGet package and project template.

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 (2)

Showing the top 2 NuGet packages that depend on Blazonia:

Package Downloads
Consolonia.Blazor

.NET TUI framework: Avalonia engine, terminal output, modern UX

Blazonia.HelloWorld

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0-alpha.0.894 120 7/7/2025
0.0.0-alpha.0.890 138 4/21/2025
0.0.0-alpha.0.889 163 4/17/2025
0.0.0-alpha.0.888 157 4/16/2025
0.0.0-alpha.0.887 154 4/16/2025
0.0.0-alpha.0.886 145 4/16/2025
0.0.0-alpha.0.882 178 4/15/2025
0.0.0-alpha.0.881 164 4/15/2025
0.0.0-alpha.0.880 219 4/16/2025