Customizing Controls with Handlers in .NET MAUI

preview_player
Показать описание

UI controls in .NET MAUI are rendered via handlers, lightweight classes that map properties and features to bite-sized implementations. In this video we will learn how to override the default .NET MAUI handler behavior to tweak the native controls to our liking. Spoiler alert: much easier than Xamarin.Forms Custom Renderers!

💝 Join this channel to get access to perks:

🔗 Links


⏱ Timestamps
00:00 - Intro
00:12 - Inspect End Result
00:31 - Implement Custom Handler for All Views
06:09 - Custom Handlers for Multiple Platforms
07:23 - Running the Sample App
07:55 - Customize Specific Control: Button
09:51 - Customize Controls Without if compiler directives
11:53 - Why (Not) Use This Method
12:25 - Customize Controls with Partial Classes
17:53 - Outro

🙋‍♂️ Also find my...

#dotnetmaui #Handlers #Customize #dotnet #dotnet6 #XamarinForms #CustomRenderer #Renderers #CustomHandler
Рекомендации по теме
Комментарии
Автор

You’re a life saver. Whenever I think I need something, I can always count on learning it quick knowing you probably have a tutorial for it!

shahanahmed
Автор

Awesome video, thank you! I hope we'll learn more about Shells in Maui.

latsbrah
Автор

Custom Controls for MAUI Please !!! :)

Looking_Above
Автор

Hi Gerald, Its an much needed video from you with clear presentation of handlers in MAUI, please go for custom controls video as well, Thanks

SurinderSingh-ueft
Автор

Thanks Gerald for answering my question 👍. You're the man.

Tamer_Ali
Автор

I like Method 3. Awesome video . Keep them rolling. Thanks.

anandshindey
Автор

Thanks for the awesome video!
I'm also interested in creating our own control, for example to create a new button style from scratch. :)

jean-baptistedioli
Автор

Having a video explaining how to create custom controls would be great

AlvaroRivoir
Автор

Awesome video as always, can you make another video related to custom Button in tabbedpage ?

abdulkabir_
Автор

Great video and of course i get more videos about custom handlers !
Thank you !

ermanomartins
Автор

I quickly tried all three methods in a new project except I used the Entry control and removed the underline. All three methods worked fine. The sample code is under robreno forward slash CustomControlHandlerDemo. I found the 3rd method very nice, but am left with a question. It works, but is this not the recommended way any longer or are there issues to be concerned about? Thanks for this video, Gerald.

metacapitalism
Автор

Thanks for the video,
How to handle Xamarin.Forms Dependency service & Effects in MAUI

Guru
Автор

Thanks for these videos! I am trying to implement this, and as of Version 17.0.0 Preview 7.0 of VS 2022, getting a message that "ButtonMapper does not exist on property ButtonHandler." "ElementHandler" property does exist, but that gives error, "Cannot apply indexing with [] to an expression of type 'IPropertyMapper<IElement, IElementHandler>'."

stefanhodges-kluck
Автор

Hi, I want to creat custom datagridListview handler to handle scrollchange event. Do you have any idea how to do that? Please help

ankits
Автор

Thank you for this great video. Do you plan to do one on the MVU pattern in MAUI ? And/Or the declarative way to write UI with C#forMarkup or Comet ?
I am currently a .NET developer but more backend. In my free time I use Flutter to develop some mobile app for personal use and I really like their approach but as it seems that it exists kind of a same way to do it with .NET, I am considering the possibility to use MAUI for my next apps. Of course I can do it in MVVM but I find MVU more interesting for my little apps.

Anyway, keep up the good work, you're doing it great !

BelgianDaSeeD
Автор

To be honest I didn't get why the button's background been updated? It seems Gerald has overwritten "MyCustomization" property. Why is this delegate been called. Do we have MyCustomization bindable property somewhere?

deniszhukovsky
Автор

Indeed Handlers are far better than Renderers, time to upgrade all of my renderers to handlers :)

UzairAli
Автор

Gerald, I hope you talk about how to make the design responsive for mobile and tablet in Xamarin Forms.

Tamer_Ali
Автор

Hi, Gerald! I've just found your videos and they are amazing!
Could you please make a video about how to transform classic Xamarin.Forms custom render to .Net MAUI handler?
If I have a bunch of custom renderers in my app, how should I remake them to handlers?
Thanks in advance!

antonnasonov
Автор

Great. It was so cool, I try to learn Xamarin one month ago, as you describe about MAUI its better to start learning MAUI not xamarin form in old way?
and, Is that a good way to start new App with MAUI or i must wait for release final version?

hosseinaftabi