Blazonia.ComponentGenerator
0.0.0-alpha.0.894
dotnet tool install --global Blazonia.ComponentGenerator --version 0.0.0-alpha.0.894
dotnet new tool-manifest
dotnet tool install --local Blazonia.ComponentGenerator --version 0.0.0-alpha.0.894
#tool dotnet:?package=Blazonia.ComponentGenerator&version=0.0.0-alpha.0.894&prerelease
nuke :add-package Blazonia.ComponentGenerator --version 0.0.0-alpha.0.894
🪢 Blazonia
🤔 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++;
}
🛫 Start
- Install project template
dotnet new install BlazoniaTemplate
- 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 | Versions 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. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
0.0.0-alpha.0.894 | 122 | 7/7/2025 |
0.0.0-alpha.0.890 | 145 | 4/21/2025 |
0.0.0-alpha.0.889 | 164 | 4/17/2025 |
0.0.0-alpha.0.888 | 139 | 4/16/2025 |
0.0.0-alpha.0.887 | 144 | 4/16/2025 |
0.0.0-alpha.0.886 | 140 | 4/16/2025 |
0.0.0-alpha.0.882 | 168 | 4/15/2025 |
0.0.0-alpha.0.881 | 167 | 4/15/2025 |
0.0.0-alpha.0.880 | 232 | 4/16/2025 |