Experimental Mobile Blazor Bindings - Build native mobile apps with Blazor
Перейти к файлу
Eilon Lipton 3c8dd676fc Update readme 2020-01-10 14:17:40 -08:00
.vscode Update readme 2020-01-10 14:17:40 -08:00
azure-pipelines Skip signing verification 2019-12-17 15:06:21 -08:00
samples Remove unnecessary "@" from Razor files 2020-01-03 11:39:46 -08:00
src Install MicroBuild packages into projects that need signing 2019-12-13 15:40:10 -08:00
templates Remove unnecessary "@" from Razor files 2020-01-03 11:39:46 -08:00
tools Add Library.Template tools 2019-09-24 11:20:43 -07:00
.editorconfig Create .editorconfig 2019-09-17 12:08:31 -07:00
.gitattributes Add initial code from Steve 2019-08-02 16:49:21 -07:00
.gitignore Add missing azure-pipelines/artifacts folder 2019-10-03 12:50:41 -07:00
CODE_OF_CONDUCT.md Update MD files with new naming and contents 2019-12-03 14:08:26 -08:00
CONTRIBUTING.md Update MD files with new naming and contents 2019-12-03 14:08:26 -08:00
Directory.Build.props Reset all bin/obj redirection 2019-12-17 13:18:33 -08:00
LICENSE Add Azure pipelines YML 2019-09-24 10:49:11 -07:00
MobileBlazorBindings.sln Rename Emblazon to Microsoft.MobilBelazorBindings.Core 2019-12-06 16:54:40 -08:00
MobileBlazorBindings.sln.licenseheader Add license headers 2019-12-10 16:17:49 -08:00
Readme.md Update readme 2020-01-10 14:17:40 -08:00
azure-pipelines.yml Tweak pipeline order 2019-12-13 10:10:57 -08:00
global.json Update to .NET Core 3 RTM 2019-09-23 11:37:30 -07:00
init.cmd Add Azure pipelines YML 2019-09-24 10:49:11 -07:00
init.ps1 Change dotnet restore path 2019-09-24 11:26:41 -07:00
nuget.config Update to latest NuGet packages 2019-09-04 16:54:49 -07:00
pack.cmd Rename Emblazon to Microsoft.MobilBelazorBindings.Core 2019-12-06 16:54:40 -08:00
version.json Add Azure pipelines YML 2019-09-24 10:49:11 -07:00

Readme.md

Experimental Mobile Blazor Bindings

Mobile Blazor Bindings enable developers to build native mobile apps using C# and .NET for iOS and Android 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 Xamarin.Forms native UI controls, which results in beautiful native mobile apps.

Here is a sampleCountercomponent, which may look familiar to Blazor developers, that increments a value on each button press:

<StackLayout>
    <Label FontSize="30"
           Text="@("You pressed " + count + " times")" />
    <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 iOS and Android apps powered by .NET.

Here is the code above running in the Android Emulator:

Clicking increment button in Android emulator

Get started with Mobile Blazor Bindings

To get started, all you need is the.NET Core 3.0 or 3.1 SDK, Visual Studio or Visual Studio for Mac, and the ASP.NET and web development and Mobile development with .NET (Xamarin.Forms) workloads installed.

Get started by reading the Getting Started section in the docs and read through the related walkthroughs.

Contributing

As an experimental project, there are several active areas of development and we're looking for your feedback to help set the direction for this project. Please check it out and let us know any feedback you have on the project by logging issues in this repo.

Thank you!