Blazonia.ComponentGenerator
0.0.0-alpha.0.880
This is a prerelease version of Blazonia.ComponentGenerator.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Blazonia.ComponentGenerator --version 0.0.0-alpha.0.880
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Blazonia.ComponentGenerator --version 0.0.0-alpha.0.880
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Blazonia.ComponentGenerator&version=0.0.0-alpha.0.880&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Blazonia.ComponentGenerator --version 0.0.0-alpha.0.880
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
🪢 Blazonia
🤔 这是啥子?
Blazonia可以让开发者使用 <a href="https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor">Blazor</a>的语法来开发 <a href="https://avaloniaui.net/">Avalonia</a>程序。相比原版Avalonia的axmal语法, Blazonia使用的Blazor语法更加的简洁和简单,只需要单个文件即可完成页面的开发。适用于中小型规模的客户端程序。
✨ 请注意
- 🚫 使用Blazonia后不会有任何的HTML代码以及Webview组件
- 🤩 完全使用原生Avalonia控件
得益于Avalonia跨平台的特性,Blazonia可以让开发者快速的编写出漂亮的像素完美级的 💻 电脑, 📱 手机 和 🌐 网页 应用程序
🌰 这是一个小例子
@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++;
}
🛫 开始
暂时没有项目模板,请参考示例项目:https://github.com/CeSun/BlazoniaDemo
📄 说明
Blazonia复刻自https://github.com/Epictek/Avalonia-Blazor-Bindings分支,经过Micosoft、Dreamescaper、warappa和Epictek等开发者维护。
Blazor的语法入门门槛极低,对新手十分友好,但是原仓库看起来并不是活跃,所以我将继续维护该仓库,由于原名称在nuget上已经占用,我将其更名Blazonia(Blazor + Avalonia),以便于后续上传nuget库和项目模板🙂。
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
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 | 146 | 4/21/2025 |
0.0.0-alpha.0.889 | 165 | 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 | 141 | 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 |