Тёмный

This Is How Simple Dependency Injection is in .NET MAUI 

Gerald Versluis
Подписаться 104 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@thomaseslier5332
@thomaseslier5332 2 года назад
Hi Gerald, Thank you for the video, short and useful
@jfversluis
@jfversluis 2 года назад
Thanks Thomas!
@finch9668
@finch9668 3 года назад
Thank you Gerald! I'm eager to see more .NET MAUI tutorials!~~
@jfversluis
@jfversluis 3 года назад
A lot is still changing and happening so there will be more, but might be a bit later! :)
@GellClan
@GellClan 3 года назад
Very good video, thanks. I'm really excited to see what else is coming new in .NET MAUI
@jfversluis
@jfversluis 3 года назад
Thanks Alex, appreciate it! Yeah things like these really take away the first barriers of starting with mobile development. Learn only what is really important. Hope we get to implement more of these things!
@RVlietstra
@RVlietstra 2 года назад
Hi Gerald, thanks for the videos. How do we get a DI viewmodels to a shell content page ? It seems shell pages do not support constructor injection. Thanks!
@jfversluis
@jfversluis 2 года назад
I've checked with the rest of the team and at this point it's indeed not possible. Something that is thought about and might come later!
@jwj4535
@jwj4535 3 года назад
Hello Gerald, first of all, thank you again for the job you do, I am happy to see that the channel is growing. I wanted to ask you if there is any way to set the camera to 9:16 while using it, and to add a usage timer at the same time. In other words, is there any way to make the camera (using Xamarin Forms) behave in a similar way to how it does using Instagram Reels, youtube shorts, Tik Tok videos...
@juliandormon7536
@juliandormon7536 2 года назад
For the love of G-d, can you please make a tutorial on how to change the header bar colors of the WinUI and other shells in Maui Blazor? There is very little documentation on this. CommandBarBackgroundColor, etc? Thank you!
@jfversluis
@jfversluis 2 года назад
Hm not sure what you mean?
@michelchaghoury870
@michelchaghoury870 3 года назад
gr8 vid like always, i wanna ask u if i am building an app with MAUI and on mobile screen i want an item to take the size of the entire row but if i have a bigger screen like a pc or a laptop or tables i want that item to no longer take the size of the entire row instead to take the size of a col and then have more that one item on the same row, can u please show us how to make responsive screen designs with MAUI to have a good ui/ui on multi sized screens. and pleaseeeee keeep going i am learning a lot from u
@mampary
@mampary 2 года назад
VisualStateManager is your friend
@argonjs
@argonjs 3 года назад
Hi Gerald. Awesome video as always. Any update regarding Apple M1 vs Visual studio for mac?
@jfversluis
@jfversluis 3 года назад
What update are you looking for?
@argonjs
@argonjs 3 года назад
@@jfversluis Is it now stable to move from intel to m1 completely
@jfversluis
@jfversluis 3 года назад
@@argonjs Ive been working with it since day 1, so I would say yes :)
@argonjs
@argonjs 3 года назад
@@jfversluis Oh nice.. Since most of your videos on windows i thought still m1 is not stable for the development.. Thanks :)
@jfversluis
@jfversluis 3 года назад
@@argonjs Nope! That is just because working with .NET MAUI is better supported on Visual Studio for Windows at the moment. Whenever I can I will switch back to Mac!
@michaelrogers6935
@michaelrogers6935 Год назад
You referenced an earlier video where you talk about host builders -- can you provide a link to that? Google's not being helpful (and it's too new for ChatGPT)
@jfversluis
@jfversluis Год назад
Host builders aren’t very new especially when used with ASP.NET. This might be helpful: thewissen.io/adopting-the-generic-host/
@oleg_lysiak
@oleg_lysiak 3 года назад
Great video!
@jfversluis
@jfversluis 3 года назад
Thanks Oleg!
@tony2-t
@tony2-t 2 года назад
this was super helpful
@jfversluis
@jfversluis 2 года назад
Great! Glad you think so! Thanks!
@egvijayanand
@egvijayanand 2 года назад
Would like to see the implementation with Microsoft.Extensions framework.
@jfversluis
@jfversluis 2 года назад
That’s what this is 😄
@egvijayanand
@egvijayanand 2 года назад
@@jfversluis Oops, many videos on DI, watching it back and forth, added the comment on this video. BTW, concise explanation 👏👏👏
@jfversluis
@jfversluis 2 года назад
Thank you!
@maxborrmann5663
@maxborrmann5663 2 года назад
is it possible to inject viewmodels into custom controls/ contentviews?
@jfversluis
@jfversluis 2 года назад
I would think so yes
@maxborrmann5663
@maxborrmann5663 Год назад
@@jfversluis How does that work? I get a XAML exception that there is no parameterless constructor when I try to do that. This would be of great help since my Page or Page ViewModels would not have to know about every control in the page anymore.
@alexmidnayt159
@alexmidnayt159 3 года назад
Hi, Gerald. Why are you write like - Message{get;} = " ..."? is not simple to do like Message => " ..."?
@jfversluis
@jfversluis 2 года назад
Het Alex! Watch out with that one because they do very different things! The { get; } = … sets the initial value. With => it will execute each time and give you a new instance of the object. Try it with a GUID and you’ll see
@zoiobnu
@zoiobnu 2 года назад
In my tests i can't work with DependencyInjection with Shell System.MissingMethodException: 'Cannot dynamically create an instance of type 'SOManager.Pages.LoginPage'. Reason: No parameterless constructor defined.'
@jfversluis
@jfversluis 2 года назад
Unfortunately it doesn’t work with Shell yet :(
@zoiobnu
@zoiobnu 2 года назад
Thanks, let's wait the fix
@devates
@devates 2 года назад
Thank you.
@jfversluis
@jfversluis 2 года назад
You’re welcome!
@r.gopalakrishnan6926
@r.gopalakrishnan6926 3 года назад
Awesome 👌
@jfversluis
@jfversluis 3 года назад
Thanks 🤗
@vinothswami4526
@vinothswami4526 9 месяцев назад
Hi Gerald, why is the splash screen not working on windows. Please advise
@jfversluis
@jfversluis 9 месяцев назад
A splash screen is not very typical on desktop and is not available unless you implement something for it yourself
@vinothswami4526
@vinothswami4526 9 месяцев назад
@@jfversluis so I should go for a view with a delay time right?
@adiguzelburak
@adiguzelburak 3 года назад
Hi Gerald, I need your help. I would like to do where i tapped on the device, i need to know X,Y location of tapped position. I couldn't find any where. could you help me please? . Thank You
@jfversluis
@jfversluis 3 года назад
Have you looked at the MR.Gestures library? I think it can do that, it is paid though, but it's the easiest. Else you will have to go write custom renderers to do it
@adiguzelburak
@adiguzelburak 3 года назад
@@jfversluis thanks Gerald🙂
@mapanjwani
@mapanjwani Год назад
Hi, how are you? Can you please tell me how can i use ConsumerIrManager service in .net maui? I couldn't find any info regarding this. Thanks
@jfversluis
@jfversluis Год назад
Either work with #if ANDROID sections or add the code for this in the Platforms/Android folder
@mapanjwani
@mapanjwani Год назад
@@jfversluis Thanks for the reply. How to use #if ANDROID section?
@jfversluis
@jfversluis Год назад
@@mapanjwani learn.microsoft.com/dotnet/maui/platform-integration/invoke-platform-code
@mapanjwani
@mapanjwani Год назад
Great , thanks
@zoiobnu
@zoiobnu 3 года назад
Internal Preview ?
@jfversluis
@jfversluis 3 года назад
Yep! Why? 😄
@zoiobnu
@zoiobnu 2 года назад
@@jfversluis Just curious
@jfversluis
@jfversluis 2 года назад
I work at Microsoft so I have access to internal previews :)
Далее
@ItsMamix учу делать сигму😎
00:12
Просмотров 663 тыс.
Check and Request Permissions in .NET MAUI
19:48
Просмотров 24 тыс.
.NET MAUI Controls: Mastering the Basics and Beyond
29:33
Customizing Controls with Handlers in .NET MAUI
19:10