ZeekoZhu / BlazorBindings.Maui

AvaloniaUI Blazor Bindings - Build native Avalonia apps with Blazor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlazorBindings.Avalonia

Nuget

What is it?

Avalonia Blazor Bindings enable developers to build Avalonia apps using C# and .NET for Android, iOS, Windows, macOS, and Tizen using familiar web programming patterns. This means you can use the Blazor programming model and Razor syntax to define UI components and behaviors of an application. The UI components that are included are based on Avalonia UI controls, which results in beautiful mobile apps.

Here is a sample Counter component that renders native UI, which may look familiar to Blazor developers, that increments a value on each button press:

<StackPanel>
    <Label FontSize="30">You pressed @count times </Label>
    <Button Text="+1" OnClick="@HandleClick" />
</StackPanel>

@code {
    int count;

    void HandleClick()
    {
        count++;
    }
}

Notice that the Blazor model is present with code sitting side by side the user interface markup that leverages Razor syntax with mobile specific components. This will feel very natural for any web developer that has ever used Razor syntax in the past. Now with the Experimental Avalonia Blazor Bindings you can leverage your existing web skills and knowledge to build Avalonia apps using C# and .NET for Android, iOS, Windows, macOS, and Tizen.

About this repository

This repository is a fork of Deamescapers's Experimental MobileBlazorBindings, which I decided to fork and maintain separately. If at any point of time Avalonia developers decide to push that repository moving forward, I'll gladly contribute all of my changes to the original repository.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

For more information, see the .NET Foundation Code of Conduct.

Thank you!

About

AvaloniaUI Blazor Bindings - Build native Avalonia apps with Blazor

License:MIT License


Languages

Language:C# 95.2%Language:HTML 4.8%