Customizing Controls with Handlers in .NET MAUI

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 93

  • @jfversluis
    @jfversluis  3 роки тому +2

    !!! Please note that the code in this video does not work any more !!! Please see this updated video: ua-cam.com/video/k6Zk3Ho8YNw/v-deo.html

    • @michaelbiono5213
      @michaelbiono5213 Рік тому

      Thanks for all the video updates to your Tutorials and Examples as MAUI Progresses

  • @shahanahmed9444
    @shahanahmed9444 2 роки тому

    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!

  • @latsbrah7589
    @latsbrah7589 3 роки тому +3

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

    • @jfversluis
      @jfversluis  3 роки тому +3

      Good one! I should do more with Shell and .NET MAUI is a great point in time to do so, I will look into it!

  • @MuhammadNadeem-wj6xd
    @MuhammadNadeem-wj6xd 3 роки тому +1

    Wow.... @Gerald is Back 🥳

  • @Looking_Above
    @Looking_Above 3 роки тому +6

    Custom Controls for MAUI Please !!! :)

  • @SurinderSingh-ue9ft
    @SurinderSingh-ue9ft 3 роки тому

    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

  • @Tamer_Ali
    @Tamer_Ali 3 роки тому

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

  • @anandshindey
    @anandshindey 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому +1

      Me too! Looking forward to someone coming up with an even better solution though :D

  • @nickyboomtube
    @nickyboomtube 3 роки тому

    Thanks, looking forward for more

  • @metacapitalism5113
    @metacapitalism5113 Рік тому

    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.

  • @abdulkabir_02
    @abdulkabir_02 10 місяців тому

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

  • @AlvaroRivoir
    @AlvaroRivoir 3 роки тому +1

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

    • @jfversluis
      @jfversluis  3 роки тому

      The actual custom control is a bit hard because that is whatever you want to implement. I do have this: ua-cam.com/video/cbmoaD-PDtA/v-deo.html which should mostly be the same for .NET MAUI :)

  • @ermanomartins
    @ermanomartins 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому +1

      More will come, thank you!

    • @jfversluis
      @jfversluis  3 роки тому +1

      And thanks for becoming a member! Super appreciate it!

  • @jean-baptistedioli1692
    @jean-baptistedioli1692 7 місяців тому

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

  • @checox1909
    @checox1909 3 роки тому +1

    WOW WELCOME MAUI ♥

    • @jfversluis
      @jfversluis  3 роки тому

      Expect a lot more to come! :)

  • @metacapitalism5113
    @metacapitalism5113 Рік тому

    Wonderful. Very useful.

  • @stefanhodges-kluck5580
    @stefanhodges-kluck5580 3 роки тому +1

    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'."

    • @jfversluis
      @jfversluis  3 роки тому

      Seems there has been a change in that area already... I should make an updated video I guess 😅

    • @georgeoutters5657
      @georgeoutters5657 3 роки тому

      @@jfversluis Please make one. I can't seem to find anywhere how to use the "updated" version of this, even the official docs are wrong :/

    • @jfversluis
      @jfversluis  3 роки тому

      Remember it’s all preview. I understand it can be frustrating but things change :)

    • @jfversluis
      @jfversluis  3 роки тому

      See here for more info: twitter.com/jfversluis/status/1463886879703633930?s=21
      I’ll post an updated video soon :)

  • @Thaizer
    @Thaizer 3 роки тому

    Very nice video.
    I like to see something about Custom Controls

  • @deniszhukovsky2260
    @deniszhukovsky2260 3 роки тому

    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?

    • @jfversluis
      @jfversluis  3 роки тому +1

      That's what I mentioned. If you're overriding it like this the property name doesn't matter, it will call it anyway :)

  • @ankits9791
    @ankits9791 10 місяців тому

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

  • @BelgianDaSeeD
    @BelgianDaSeeD 3 роки тому

    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 !

  • @billymartin6497
    @billymartin6497 Рік тому

    Another great video. How could I use this to change the status bar background and text color ifor windows?

    • @jfversluis
      @jfversluis  Рік тому

      You mean the title bar? The top one with the close and minimize buttons?

    • @billymartin6497
      @billymartin6497 Рік тому

      @@jfversluis Yes. Toolkit behaviors only seems to work for android and iOS Title Bars.

    • @billymartin6497
      @billymartin6497 Рік тому

      Have you been able to figure it out yet?

  • @hosseinaftabi7049
    @hosseinaftabi7049 3 роки тому

    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?

    • @jfversluis
      @jfversluis  3 роки тому +1

      It depends... If you want to start learning I would recommend Xamarin.Forms today. 90% what you learn about Forms will be applicable to .NET MAUI as well and it's a bit more stable at the time being. For a new app that you want to release to production... If you really want to start today; again Forms is the better option. If you can wait a. couple of months, definitely .NET MAUI. But there will be a transition possible from Forms to .NET MAUI so if you do start today in Forms, the transition should be relatively easy :)
      Also this video might help: ua-cam.com/video/zvPPz6DABi8/v-deo.html

  • @akshayjain3197
    @akshayjain3197 3 роки тому

    Its a great video. Just one question as it seems if we define the handler it will override the view property as whole what if we need different customize at different pages?

    • @jfversluis
      @jfversluis  3 роки тому

      Thanks! You can write your own logic to handle the property. So either fix it with logic or create inheritances of the different controls and customize those separately :)

  • @antonnasonov5451
    @antonnasonov5451 3 роки тому

    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!

    • @jfversluis
      @jfversluis  3 роки тому +1

      Thanks Anton! Appreciate it! That will definitely come :)

  • @UzairAli001
    @UzairAli001 3 роки тому

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

  • @Guru1413
    @Guru1413 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому

      Those will both come, thanks!

  • @afgone123456
    @afgone123456 2 роки тому

    How do you do it for CollectionView? before, in xamarin I used to extend CollectionViewRenderer in Android and IOS projects.

    • @afgone123456
      @afgone123456 2 роки тому

      Found it Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler

  • @kalixthuska8846
    @kalixthuska8846 3 роки тому

    Hello Gerald, do you know if MAUI will have direct support of SVG images ? I've been using fonts for that case in XF, which is not ideal for every use case.

    • @jfversluis
      @jfversluis  3 роки тому +1

      It will support SVGs out of the box!

  • @Tamer_Ali
    @Tamer_Ali 3 роки тому

    Gerald, Could you talk about release Xamarin Forms/MAUI apps automatically to App/Play Store using Azure DevOps?

    • @jfversluis
      @jfversluis  3 роки тому +1

      I'll add it to the list!

  • @mattkenefick
    @mattkenefick 3 роки тому +2

    He's using Android.Graphics.Color.Red around 8:02, but I think the more appropriate way to define colors would be to use the Maui package so it can be used universally; e.g. Microsoft.Maui.Graphics.Colors.Red.ToNative();

    • @jfversluis
      @jfversluis  3 роки тому +1

      Absolutely! Just sample code :)

    • @mattkenefick
      @mattkenefick 3 роки тому +1

      @@jfversluis Just letting the other viewers know as well :)

  • @sanjeevareddneelam3889
    @sanjeevareddneelam3889 3 роки тому

    Can we use xaml/wpf controls in maui.or only specified controls in maui

    • @jfversluis
      @jfversluis  3 роки тому

      Just .NET MAUI controls, which you can use from XAML

  • @Tamer_Ali
    @Tamer_Ali 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому

      Maybe in the future, probably not soon :) need to see some more of .NET MAUI for that first

  • @simoneye-f4j
    @simoneye-f4j Рік тому

    hello ,i want to add a keydown event for Entry,and do some work Commandexecute,also remove the underline,could you give a video,i have see this video 3 method about handler,its prettey good.anther,Render is also could be used in Maui,are you intersting do some video Maui Render?thansk

  • @kwokyung376
    @kwokyung376 2 роки тому

    how to disable softkeyboard, drawing line using skiasharp canvas, getcursor position of Entry, create pdf using pdfSharp using Maui

  • @ralphgutierrez1838
    @ralphgutierrez1838 3 роки тому

    This implementation won't work when I download the latest update.

    • @jfversluis
      @jfversluis  3 роки тому

      WHAT! This is already obsolete?! :D What doesn't work exactly?

  • @robertojrcantos1711
    @robertojrcantos1711 3 роки тому

    Hi Gerald. I tried to run .net Maui in UWP but it failed to execute.

    • @jfversluis
      @jfversluis  3 роки тому

      Without any details it's pretty hard to say something useful about it :)

    • @robertojrcantos1711
      @robertojrcantos1711 3 роки тому

      @@jfversluis can you please show us a blog of the .net Maui running in UWP? We duly appreciated if you let us see the sample. Thank you

    • @jfversluis
      @jfversluis  3 роки тому

      @@robertojrcantos1711 I don’t know what to tell you. For me it just works :)

    • @robertojrcantos1711
      @robertojrcantos1711 3 роки тому

      @@jfversluis would please show us some example of .net Maui running UWP. To see is to believe.

    • @jfversluis
      @jfversluis  3 роки тому +1

      I don’t think i have to prove anything and besides; why would I lie? Like I said; if you share some more details about what you’re seeing then I can maybe offer some assistance. I don’t think it’s very helpful that I show you how it’s running on my machine without any issues.

  • @zeeshanbadshah5371
    @zeeshanbadshah5371 3 роки тому

    Thanks 👍

  • @AngeloBestetti
    @AngeloBestetti 3 роки тому

    Very nice to globally set few things

    • @jfversluis
      @jfversluis  3 роки тому

      It sure is! Much easier than a custom renderer :)

  • @loladeking
    @loladeking 3 роки тому

    Custom controls please