BlazorBindings.Core
3.0.6
dotnet add package BlazorBindings.Core --version 3.0.6
NuGet\Install-Package BlazorBindings.Core -Version 3.0.6
<PackageReference Include="BlazorBindings.Core" Version="3.0.6" />
paket add BlazorBindings.Core --version 3.0.6
#r "nuget: BlazorBindings.Core, 3.0.6"
// Install BlazorBindings.Core as a Cake Addin #addin nuget:?package=BlazorBindings.Core&version=3.0.6 // Install BlazorBindings.Core as a Cake Tool #tool nuget:?package=BlazorBindings.Core&version=3.0.6
BlazorBindings.Maui
Getting Started
Check out the documentation for how to build your first app: https://dreamescaper.github.io/MobileBlazorBindingsDocs
What is it?
Maui Blazor Bindings enable developers to build native and hybrid mobile 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 MAUI native UI controls, which results in beautiful native 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:
<StackLayout>
<Label FontSize="30">You pressed @count times </Label>
<Button Text="+1" OnClick="@HandleClick" />
</StackLayout>
@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 Mobile Blazor Bindings you can leverage your existing web skills and knowledge to build native and hybrid mobile apps using C# and .NET for Android, iOS, Windows, macOS, and Tizen.
Here is the code above running in the Android Emulator:
<img src="https://devblogs.microsoft.com/aspnet/wp-content/uploads/sites/16/2020/01/blazor-android-counter-2.gif" alt="Clicking increment button in Android emulator" width="300" height="533" class="aligncenter size-full wp-image-23061" />
About this repository
This repository is a fork of Microsoft's Experimental MobileBlazorBindings, which I decided to fork and maintain separately. If at any point of time Microsoft 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!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.AspNetCore.Components (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BlazorBindings.Core:
Package | Downloads |
---|---|
BlazorBindings.Maui
Maui Blazor Bindings enables using Blazor syntax in .razor files to build native apps for iOS and Android. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.6 | 35 | 11/13/2024 |
2.0.34 | 86 | 11/5/2024 |
1.0.1 | 2,541 | 3/5/2023 |
0.10.40-preview | 964 | 11/16/2022 |
0.10.39-preview | 618 | 11/15/2022 |
0.9.2-preview | 897 | 9/23/2022 |
0.8.31-preview | 679 | 7/25/2022 |
0.7.1-preview | 709 | 5/25/2022 |
0.6.163-preview | 679 | 5/12/2022 |