Blazonia 0.0.0-alpha.0.882

This is a prerelease version of Blazonia.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Blazonia --version 0.0.0-alpha.0.882
                    
NuGet\Install-Package Blazonia -Version 0.0.0-alpha.0.882
                    
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.882" />
                    
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.882" />
                    
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.882
                    
#r "nuget: Blazonia, 0.0.0-alpha.0.882"
                    
#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.882
                    
#: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.882&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Blazonia&version=0.0.0-alpha.0.882&prerelease
                    
Install as a Cake Tool

🪢 Blazonia

Nuget

🤔 这是啥子?

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++;
}

Counter

🛫 开始

暂时没有项目模板,请参考示例项目:https://github.com/CeSun/BlazoniaDemo

📄 说明

Blazonia复刻自https://github.com/Epictek/Avalonia-Blazor-Bindings分支,经过Micosoft、Dreamescaper、warappa和Epictek等开发者维护。

Blazor的语法入门门槛极低,对新手十分友好,但是原仓库看起来并不是活跃,所以我将继续维护该仓库,由于原名称在nuget上已经占用,我将其更名Blazonia(Blazor + Avalonia),以便于后续上传nuget库和项目模板🙂。

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 176 7/7/2025
0.0.0-alpha.0.890 139 4/21/2025
0.0.0-alpha.0.889 164 4/17/2025
0.0.0-alpha.0.888 159 4/16/2025
0.0.0-alpha.0.887 155 4/16/2025
0.0.0-alpha.0.886 146 4/16/2025
0.0.0-alpha.0.882 180 4/15/2025
0.0.0-alpha.0.881 165 4/15/2025
0.0.0-alpha.0.880 220 4/16/2025