GithubHelp home page GithubHelp logo

tarlano / blazor-desktop-crossplatform-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edandersen/blazor-desktop-crossplatform-sample

0.0 1.0 0.0 33.7 MB

Really early hacked together example of an actual cross platform web and desktop Blazor app using the .NET 6 Blazor Desktop implementation

HTML 45.22% C# 37.35% CSS 17.44%

blazor-desktop-crossplatform-sample's Introduction

Cross platform Blazor Desktop example

This sample shows a Blazor Desktop (using the offical APIs coming in .NET 6) app running in both a web browser and in a WinForms and WPF wrapper. This uses the default Blazor Server template as an example which is a bit prettier than the one on the .NET 6 Preview 2 announcement post.

Code shared between the Blazor Desktop app and the Blazor Server apps is in the WebviewAppShared Razor class library.

docs/blazor-desktop-xplat.gif

Because you now have the power of Chromium you can now do cool WebGL things like this inside WPF and WinForms apps:

docs/blazor-desktop-xplat-water.gif

To run it open /BlazorDesktopTest.sln in Visual Studio 2022 Preview 3 with the .NET 6 Preview 7 SDK installed and "Enable Preview .NET SDKs" turned on. You can then F5 the BlazorDesktopTest and BlazorWinFormsApp projects.

Updated for .NET 6 Preview 7 and the official Microsoft.AspNetCore.Components.WebView nuget package on 9th September 2021.

Contains a snazzy WebGL water demo from https://github.com/evanw/webgl-water. No way could I write this!

blazor-desktop-crossplatform-sample's People

Contributors

edandersen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.