Using a Xamarin.Forms Renderer in .NET MAUI Without Code Changes!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Make the transition from your Xamarin.Forms app to a .NET MAUI app easier by reusing your custom renderers. You can use your Xamarin.Forms renderers without any code changes right in your .NET MAUI application. Because of this you can convert to .NET MAUI really quickly and easily and worry about rewriting your renderers to handlers later on.
    💝 Join this channel to get access to perks:
    th-cam.com/channels/ral.html...
    🛑 Don't forget to subscribe to my channel for more amazing content: th-cam.com/users/GeraldVerslui...
    🐦 Follow me on Twitter: / jfversluis
    🤝 Join the Discord server: / discord
    🔗 Links
    Sample App Repo: github.com/jfversluis/XFMAUIC...
    Javier .NET MAUI Conversion Samples Repo: github.com/jsuarezruiz/xamari...
    .NET MAUI Docs: docs.microsoft.com/dotnet/maui
    .NET MAUI Status: github.com/dotnet/maui/wiki/S...
    .NET MAUI Repo: github.com/dotnet/maui
    .NET MAUI Roadmap: github.com/dotnet/maui/wiki/R...
    ⏱ Timestamps
    00:00 - Intro
    00:15 - Custom Renderers in Xamarin.Forms
    02:50 - Create .NET MAUI App
    06:01 - Copy Custom Renderer to .NET MAUI
    07:19 - Make Renderer Work for .NET MAUI
    10:48 - .NET MAUI Renderer Registration
    15:17 - Forms Renderer in .NET MAUI Running
    15:52 - Using Renderers for Other Platforms
    16:26 - Outro
    🎥 Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
    🙋‍♂️ Also find my...
    Twitter: / jfversluis
    Blog: blog.verslu.is
    Twitch: / jfversluis
    All the rest: jfversluis.dev
    #dotnetmaui #maui #dotnet #dotnet6 #XamarinForms #CustomRenderer #Renderers
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 33

  • @jfversluis
    @jfversluis  3 ปีที่แล้ว +1

    Are you already porting your apps to .NET MAUI?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      @@shrikantthorve5701 😅 sorry! Can’t help that with a video 😜

    • @Tamer_Ali
      @Tamer_Ali 3 ปีที่แล้ว

      Sorry, not yet.
      1- need more .Net MAUI videos and waiting for Xamarin Community migration with .Net MAUI.
      2- need to build a small .NET MAUI app with a few screens "e.g. Login, Signup, Listing"
      I need your help to build that sample if applicable with the current available controls and of course keep us up to date with the new changes 😊.

    • @conorbreen295
      @conorbreen295 3 ปีที่แล้ว

      Hey Gerald, love your videos! We've been trying to migrate our multi-target (Nuget package) projects that we use in all our apps, but having some difficulty with Windows (complains that "The original target frameworks value must match the aliases"?). Can you recommend any sample repos with MAUI migration branches that includes UWP that I could look at as an example? Or even better a sample multi-target package repo that includes UWP? Caught your "surfing with MAUI" stint the other day on Twitch, was excellent and very useful, I'd recommend anyone else to look it up in fact, CodeITLive on Twitch!

    • @adamdiment8385
      @adamdiment8385 ปีที่แล้ว

      This week I started the migration process on my company's XF app. It's going pretty well so far, I had two painful days of fixing build errors, but now I have the project compiling and even running on Android. There are a lot of weird UI issues I still have to solve, but by and large the main app functionality (BLE/REST API calls/Real Time Notifications with Signal R) all work out of the box! So far, the page shell transitions seem to be a little slower than XF so I want to look into that, but the hot reload is much better than XF. Honestly, it was easier than I expected it to be. More like a major version upgrade, than a full change in Framework.
      I am having the most trouble so far with porting over the custom renderers. I tried to use them as is using the compatilibity, but get app crashes with almost no info. So I want to port the renderers to handlers. I posted this SO question elsewhere, but I think you might have a better chance of seeing it on your pinned question, so sorry for the duplication. stackoverflow.com/questions/76587039/invisible-buttons-when-using-dot-net-maui-handler
      If you get a chance to have a look I'd be very grateful!

  • @mdalamgeer3403
    @mdalamgeer3403 3 ปีที่แล้ว

    Very helpful !! That what I was looking for.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Great! Let me know how it goes! :)

  • @Tamer_Ali
    @Tamer_Ali 3 ปีที่แล้ว

    Thanks Gerald for the awesome video 👍

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      My pleasure! Thanks!

  • @kelvynra
    @kelvynra 8 หลายเดือนก่อน

    Really great explanation! Thank you!

    • @jfversluis
      @jfversluis  8 หลายเดือนก่อน

      Thank you!

  • @josedonizeteoliveirajunior1744
    @josedonizeteoliveirajunior1744 3 ปีที่แล้ว

    Very good. Thanks!

  • @Tamer_Ali
    @Tamer_Ali 3 ปีที่แล้ว

    I hope you explain how to use the new .Net MAUI way of adding handler to customize a control like Button or Label "e.g. add new property".

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      All sorts of things are definitely coming, stay tuned!

  • @user-ou1nx6nk8f
    @user-ou1nx6nk8f 7 หลายเดือนก่อน

    Hi do you have updated version of this for 2023? Namespace that you use are not working anymore

  • @MrDimis1989
    @MrDimis1989 3 ปีที่แล้ว +3

    Please show us how can we convert this custom render to handler

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +2

      That one is definitely coming!

    • @MrDimis1989
      @MrDimis1989 3 ปีที่แล้ว

      @@jfversluis Thank you Gerald!!!

  • @user-xt9vl9kx5g
    @user-xt9vl9kx5g 3 ปีที่แล้ว

    Thank you VIDEO..
    If I want iOS simulator run.
    Real iPhone remote connect possible?
    What is possible minimum iPhone Model ?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      For the Simulator have a look here: github.com/dotnet/maui/wiki/CLI:-iOS-Simulator-Selection
      I’m sure an actual device is possible, but not sure how :) I think the lowest iOS version supported is 10 however with .NET preview 6 you will need Xcode 13 beta to build

    • @user-xt9vl9kx5g
      @user-xt9vl9kx5g 3 ปีที่แล้ว

      @@jfversluis Thank you !~

  • @MohammadNawaz786
    @MohammadNawaz786 2 ปีที่แล้ว

    Hi
    I have created a MAUI project in VS 2022 preview, which is working fine initially with emulator, but now Emulator is not showing. When I create Xamarin project Emulator is showing and application is running on that Emulator.
    Please help me to resolve this issue as it occurs developing application
    What I have tried:
    1. I had delete/renamed
    Copy Code
    C:\Users\username\AppData\Local\Xamarin
    C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_e17a11fb\ComponentModelCache
    2. I had repair VS 2022 preview
    3. I had reinstall MAUI

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Please stop asking the same question under different videos, thanks :)

  • @sharafudeen4734
    @sharafudeen4734 3 ปีที่แล้ว

    It should be some tools for suggesting code changes. Most of the dev doesn't know what is MAUI namespaces equivalent to Xamarin namespaces.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      It's open-source, you can look it up ;)

  • @alexmidnayt159
    @alexmidnayt159 3 ปีที่แล้ว

    It brokes MAUI concept to use custom renderers!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      You'll want to make it native eventually to get all the benefits, but this definitely helps for transition scenarios

  • @azrinsani
    @azrinsani 5 หลายเดือนก่อน

    Errrr… light theme IDE?

    • @jfversluis
      @jfversluis  5 หลายเดือนก่อน

      All the way!

    • @azrinsani
      @azrinsani 5 หลายเดือนก่อน

      @@jfversluis 😱😱😱😱😱😱😱😱😱