Using and Creating Behaviors for your UI controls in Xamarin Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • Don't you wish you could add functionality to UI controls without having to subclass them and do all kinds of complex stuff? You can with Behaviors!
    In this video we see what Xamarin.Forms Behaviors are. We will learn how to consume them in your own code, but also how to create them yourself!
    💝 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 repo: github.com/jfversluis/Behavio...
    Xamarin Community Toolkit: github.com/xamarin/XamarinCom...
    Microsoft Docs: docs.microsoft.com/xamarin/xa...
    ⏱ Timestamps
    0:00 Intro
    0:47 What are Behaviors?
    2:00 Consume a Behavior
    9:05 How to create your own Behavior
    11:37 Other pre-built Behaviors in the #XamarinCommunityToolkit & Demo
    13:51 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
    #xamarinforms #behaviors #dotnetmaui
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    Are you using behaviors in your code right now? What do they do? And what can I do to persuade you to contribute them to the XamarinCommunityToolkit? ;)

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

    Subbed, love Xamarin.Forms, love your content! :D

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

      Welcome aboard! Thanks so much :D

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

    Great Content! Easy to follow and very informative.

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

      Thank you Fidhal! Glad you like it :)

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

    Awesome! Just what I needed.

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

      Glad I could help!

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

    Unfortunately only now came across this video of yours. It is once again super structured and also goes into great detail.
    What do you think Gerald, can I use an AnimationBehavior also for a shimmer effect? Since I assemble my skeletons myself, these are always just static gray bars. There is still a shimmer missing, that would be a good idea or?

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

      Thank you so much David!
      Why are you rolling your own? You know there is stuff that you can use out there for this, right? :)

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

      @@jfversluis Yes I know there are libraries for this however I have not been able to get it to work in combination with .
      So I had to make a workaround and design my own skelton
      Do you have a better solution?

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

    @Gerald,
    Could you let us know what is the best way to validate the entire form like ui in Xamarin forms

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

      Great question! I’ll see to add a video on that :)

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

    Great video! I have a image that I use as a button, and I want to hide it after it's been tapped. How can this be achieved?

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

      Create a behavior that hooks into the tapped handler and hide the parent control when that event is fired!

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

    Please explain Combine latest in xamarin forms

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

      I’m sorry I’m not sure what you mean by this