From Web to Native with .NET MAUI and Blazor | .NET Conf: Focus on MAUI

  Рет қаралды 33,299

dotnet

dotnet

Күн бұрын

Blazor uses the latest open web standards to enable full stack web development with .NET. But what if you need to build a native client app? Blazor has expanded beyond the web to enable building native client apps using a hybrid of web technologies and .NET. In this session we’ll look at the new Blazor Hybrid support in .NET MAUI for building cross-platform native client apps for mobile, desktop using your existing Blazor web UI components.
Speaker: Dan Roth
/ danroth27
Links:
- .NET MAUI Self-guided Learning on Microsoft Learn: aka.ms/maui/ms...
- .NET MAUI Website: aka.ms/maui/we...
- Install .NET MAUI: aka.ms/maui/in...
- .NET MAUI Documentation: aka.ms/maui/docs
- .NET MAUI on GitHub: aka.ms/maui/gi...
- .NET MAUI Workshop: aka.ms/maui-wo...
- .NET MAUI Beginner Series Videos: aka.ms/maui/be...
- .NET KZbin - / dotnet
- .NET on Twitter - / dotnet
🙋‍♀️🙋‍♂️ Get your questions answered on the Microsoft Q&A for .NET: aka.ms/dotnet-qa
🏫 Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: aka.ms/learndo...
#dotnet #dotnetmaui #dotnetconf

Пікірлер: 54
@andrewbeeman84
@andrewbeeman84 2 жыл бұрын
Posted my first app to the Play / App store yesterday. Still awaiting approval. I always wanted to but alas, I was a C# front end dev. Thanks for making it happen!
@andrewbeeman84
@andrewbeeman84 Жыл бұрын
@Tony hybrid ftw
@jomydepp1633
@jomydepp1633 Жыл бұрын
Can you share link of your app plz
@jomydepp1633
@jomydepp1633 Жыл бұрын
@Tony can you share your app plz
@chillydill4703
@chillydill4703 Жыл бұрын
This is the one of the most exciting stuff happened last year!
@orhancanoguz4423
@orhancanoguz4423 2 жыл бұрын
Perfect intro , more than "Hello world" level. Thanks.
@Kubatko
@Kubatko 2 жыл бұрын
This was such a great demo. Really excited and hoping to adapt a bit of Blazor in our company as well.
@amirhmahmoodi4607
@amirhmahmoodi4607 Жыл бұрын
Man, that's crazy🔥♥️
@atari1040
@atari1040 2 жыл бұрын
Guys.... It's all great but... You have to reinvent these bindings, I mean WTH is that: Selector="#app" or ComponentType="{x:Type local:Main}" --> this is ALL insane! Please WORK HARD on simplifying the syntax for this because in general I think that XAML is best thing that could happen to UI but that markup gets worse which each new release and/or new set of features etc. I understand and know exactly what is behind the scenes and that is why I think this CAN be done. Good luck!
@kolesplace
@kolesplace Жыл бұрын
I"ve been developing in Blazor Server. Seeing this MAUI with shared pages really sparks my interest, however, I don't see how I can share pages when my pages depend upon DI services. I would love to see those projects for an example.
@rpreviato
@rpreviato 2 жыл бұрын
How about UINavigationView? Swipe to delete actions. I'm thinking how can I manage to do that using Blazor 😥
@post_eternity
@post_eternity Жыл бұрын
Thanks for the video, pls put link to the playlist blazor code repo and the one you are demoing
@keisoft7257
@keisoft7257 2 жыл бұрын
thank you! maui and blazor
@emreaka3965
@emreaka3965 Жыл бұрын
15:20 the loading text is bothering me. It must be loaded when the application is getting started.
@mentalstatement
@mentalstatement Жыл бұрын
Why cant they make a C# to Javascript converter.. So you can code in c# and access all the browser / javascript API's and just have it converted to javascript on compile?
@mykolamykhaliuk
@mykolamykhaliuk Жыл бұрын
Nice demo. How good is performance on mobile apps? fps?
@pandaheroes2649
@pandaheroes2649 2 жыл бұрын
Greate Work Sir
@LibyaMicro
@LibyaMicro Жыл бұрын
what type of Android Emulator you use , name or company plz
@AnassELBACHI
@AnassELBACHI 2 жыл бұрын
Thanks for this awesome video. I have a brief question. Is blazor hyprid app support local storage? For exemple converting a web app that use browser local storage to native app.
@chezchezchezchez
@chezchezchezchez 2 жыл бұрын
It's nice how Microsoft gets RIGHT BACK to you, and answers the question. Don't they WANT developers to get solutions?🙄 I want to know too!
@souleykane8967
@souleykane8967 Жыл бұрын
Blazor Hybrid app don't use the browser, so no local storage support. You don't need local storage because you have access to file system etc..... Your components should be using DI, so that you don't need to modify them for Blazor WASM app or Blazor Hybrid. You can be saving to local storage with blazor WASM and to file system with Blazor Hybrid with the same component thanks to DI.
@souleykane8967
@souleykane8967 Жыл бұрын
@@chezchezchezchez Answer below.
@alexanderm8169
@alexanderm8169 Жыл бұрын
Haven't been able to run the git repo on Mac M1 chip having issues installing WASP tools and tried to run it an install with brew put still no success :(
@S3Kglitches
@S3Kglitches 2 жыл бұрын
when will IDisposable work in MAUI Blazor?
@munawarkhurshid1201
@munawarkhurshid1201 2 жыл бұрын
Excellent. I have a question, for auth I navigate to a different XAML Page that has an embedded web view. After successful Auth I need to navigate back to the root of the app which happens to be MainPage.XML and I am not able to do so. I have tried Navigation.PopToRootAsync nothing seems to make it go back to the Main Page. Any ideas..
@cissemy
@cissemy 2 жыл бұрын
Is .Net Maui Blazor running in the webview like ionic ?
@emreaka3965
@emreaka3965 2 жыл бұрын
Yes, It does BUT It is not slow like Ionic.
@randallstephens1680
@randallstephens1680 2 жыл бұрын
It needs support for Linux.
@fieryscorpion
@fieryscorpion 2 жыл бұрын
How about no HTML? Just paint XAML on canvas and thats it. C# for running code in browser and XAML for markup. Why are we making this complex with Webview, JS and so on?
@franciscofernandezcasas7924
@franciscofernandezcasas7924 Жыл бұрын
I love MAUI, BUT why is Microsoft NOT using MAUI in their own major projects, such as their own flagship applications? Only when Microsoft creates their flagship products using MAUI, the community will feel confident on this product. As that will prove that Microsoft will have to make MAUI successful for making their flagship products successful.
@briannielsbergh
@briannielsbergh 2 жыл бұрын
This is all great! great!! - I have been experimenting with MAUI (xaml and blazor), but man it's buggy. I have been playing with it for the last week on two different pc's, my company laptop (vs2022) and my private (brand new monster pc) also with vs2022, and......man its buggy. Nothing works - every 1 minute i need to restart visual studio, then it cant compile, then it complains about android sdk's, then the windows machine version won't start, then visual studio crashes, then the android emulator won't start.......this is so so time consuming, that even though i would give my right arm to make it work, because i find it "COOOL" and something i have been waiting for, ever since "windows phone", and easy way to make apps that just work on windows and android. But, i must admit, im running out of patience. - Also, there are great videos on youtube to explain how to get started, but they all show the same "click click" app or hello world. - I really need a way to receive push notifications, and i can't find a single example :(
@chezchezchezchez
@chezchezchezchez 2 жыл бұрын
Did you make it all work yet? It's nice how Microsoft gets RIGHT BACK to you, and answers the question. Don't they WANT developers to get solutions?🙄 I want to know too! I'm in your SAME BOAT! ARRGGHH!
@seanknowles9985
@seanknowles9985 2 жыл бұрын
Can maui and blazor apps work on linux?
@IronJmo
@IronJmo 2 жыл бұрын
Microsoft is expecting the community to add support for Linux.
@abou3542
@abou3542 Жыл бұрын
Blazor yes,Maui only for android development for now using cli.
@teejstroyer
@teejstroyer 2 жыл бұрын
I wish Microsoft just rewrote a lightweight rendering engine for html and css but no js support unless that doesn’t improve build size. And then all “dom” manipulation will be in c# and have much greater performance. Effectively if xaml was just traditional html controlled by c# instead of js
@lx2222x
@lx2222x 2 жыл бұрын
I think HTML should be fully replaced since it is completely messy. HTML is not a good invention...
@Borlays
@Borlays 2 жыл бұрын
they can do same as flutter did, if they paint xaml on canvas and since we can run c# code in browser with web assembly, we could use MAUI on web easily, but nope...
@teejstroyer
@teejstroyer 2 жыл бұрын
@@Borlays exactly…. Truly native blazor without having to use a webview component.
@Borlays
@Borlays 2 жыл бұрын
You doing opozite that you should be doing. How about no html? Like flutter did, just paint xaml on canvas and thats it. You would have a web without html and javascript. Now you transfering the worst markup language (html) to the best one (xaml) instead of removing the worst one and replacing with the best one. And on top add 10x complexity. All you have to do is paint xaml on canvas and all problems solved since you can run c# code in browser already.
@fieryscorpion
@fieryscorpion 2 жыл бұрын
This makes so much sense. Why isn't Microsoft doing something similar? Sigh...
@hurolinci5986
@hurolinci5986 Жыл бұрын
Two reasons come to mind. #1 you alienate non dotnet developers to give it a shot since all web developers know html but not xaml. 2# How you gonna make your XAML always translate perfectly into HTML? it's possible sure, but another layer means more complexity and therefore more bugs.
@Borlays
@Borlays Жыл бұрын
@@hurolinci5986 1. True, but it's not the way to go if we want to progress we need to change existing technologies with better ones. 2. You don't need to translate it to HTML, you can just render on canvas everything like flutter does (it has 2 options, one as canvas, other translation to html which doesnt work properly). And since they have logic to render XAML, i don't think it would be something hard to make it render on canvas. Obviously there are always challenges but i think there is nothing that is impossible to do.
@hurolinci5986
@hurolinci5986 Жыл бұрын
@@Borlays I agree with you. I also would prefer using XAML instead of HTML. But I assume that microsoft decided on behalf of the two reasons I mentioned above. It's up to us to develop the missing pieces I guess.
@marvelleonardoabdinegoro6329
@marvelleonardoabdinegoro6329 Жыл бұрын
Pros : Actually Write Once Deploy Anywhere, Cons: Uses bulky shells to showcase the app within mobile apps (bulky ios shell for ios app, bulky android for android), and stores the code in user data portion of the app, a portion that usually offered by space optimizer apps to clear. over 100MB of user data and 18 MB of shell just to display a simple hello World? Come on!.. tried clearing the user data and voila... the app died
@pattatest7901
@pattatest7901 2 жыл бұрын
deployment this app
@andrewbeeman84
@andrewbeeman84 2 жыл бұрын
I just posted my app the the Play / App stores yesterday.
@SMECmicrodeveloper
@SMECmicrodeveloper 2 жыл бұрын
hahaha they can’t even near to flutter thanks google
@ioneocla6577
@ioneocla6577 2 жыл бұрын
Why is that ?
@SMECmicrodeveloper
@SMECmicrodeveloper 2 жыл бұрын
@@ioneocla6577 Flutter covers Ios , Android , Web , Wimdows desktop , Mac desktop, linux as well.
@ioneocla6577
@ioneocla6577 2 жыл бұрын
@@SMECmicrodeveloper maui covers windows macos iOS Android tizen and the web (kinda) which is impressive considering that flutter only supported iOS and Android when it first came out
@SMECmicrodeveloper
@SMECmicrodeveloper 2 жыл бұрын
Dont take it personal its my personal professional opion, we cant wait for another 5 years to do the things which is already available in other mature platforms like React and Flutter. They stepped doen Silverlight , They are stepping down Xamarin Forms and moving to MAUi. I am using Microsoft products since Silverlight and I developed few apps in XF as well but even XF is not as rich as Flutter and react .
@ezecel9
@ezecel9 Жыл бұрын
maybe, but if you are a C# developer, .net maui is easier and faster to learn
@SMECmicrodeveloper
@SMECmicrodeveloper 2 жыл бұрын
Way behind to Flutter. Cheater
Build cross-platform native apps with .NET MAUI and Blazor
28:48
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 39 МЛН
Native client apps with Blazor Hybrid | OD109
27:16
Microsoft Developer
Рет қаралды 28 М.
Intro to Blazor Hybrid (.NET MAUI Blazor)
37:18
IAmTimCorey
Рет қаралды 60 М.
Welcome to .NET MAUI! | .NET Conf: Focus on MAUI
1:01:28
dotnet
Рет қаралды 20 М.
New Blazor WebAssembly capabilities in .NET 6
29:11
dotnet
Рет қаралды 98 М.
.NET MAUI Explained: What is it, How does it work, and What about Blazor?
34:28
.NET MAUI Blazor - Build Hybrid Mobile, Desktop, and Web apps
46:49
DotNetCode.IT
Рет қаралды 14 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН