Using TypeConverter with Xamarin.Forms for Better Custom Controls

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

КОМЕНТАРІ • 31

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

    Solid as always, Gerald.

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

      Thanks for tuning in again!

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

    Hi Gerald, I have been learning from you for a very long time, and I must say you have really contributed to my programming passion and perfection. Thanks so much!
    I hope to release my first ever application this year with Maui, and acknowledge hardworking and experienced developers like you. I have actually been in the hidden for a very long time, and always creating amazing stuffs as a hobby, but, not this time. 😊 I am really ready to strike with the support and experience I have learnt from great people like you and the others in the community.
    Well, enough of my long talk, just to introduce myself.
    However, with regards to this TypeConverter tutorial, it appears there is a problem in Maui. I don't know if I should refer to it as a bug in Maui. May be I am not doing something right, I stand to be corrected, because, it doesn't seem to work.
    In fact, it causes the app to crush. So please, if possible update the video for some of us in the Maui community. I'm using Visual Studio for Mac.

  • @joaooliveira9106
    @joaooliveira9106 2 роки тому +1

    Hi Gerald! Great opportunity to thank you for all the content you throw. Huge fan here. This might be a bit offtopic to ask in this video: What do you think it would be a good approach / good pattern practice concerning multi-language apps? Thanks in advance and keep going ✌👊

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

      Thanks so much for the kind words! Have a look at a project called GitTrends on GitHub. That uses multi-language:)

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

    Always the BEST!! Gerald

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

    Hey Gerald, great video again.
    I have implemented something similar but for the font size and font colours on my custom labels, custom buttons, custom entries and custom editors so that it is easy for myself and the frontend devs to set font size and colours based on the mocups that we get from the design team without having a whole scala of colours and sizes that they seem to come up with by themselves.
    You can select small, medium, large etc etc... though we do have that already have that on the basic controls they don't often line up with actual request sizes we get from the design team and also across the different OS's there are different sizes on the font size enums in Xamarin forms.

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

      The named sizes follow the guides that are there per platform. So large can definitely be different between iOS and Android. I think numbered values should be the same mostly.
      Also, sorry for maybe some unsolicited advice, but it seems overkill to create custom controls for this? Isn’t this what styles are for?

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

      @@jfversluis maybe the label and buttons I could have used a style but the editor and entries are wrapped in a frame with rounded corners.
      The namesizes in Xamarin forms relate to different sizes per OS. There is actually a MS document that explains the font size per OS per name size.
      You could use an on device approach in your style agreed but I found my implementation a bit more flexible in usage.
      Though development was obviously a bit more difficult.

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

      Cool! Great job!

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

    I have a question. I use mvvm not custom (freshmvvm or prism) i have a page with some data and I have another page for edit the object....pass it as a parameter...but when I save the object back page not refresh ....how to do that ? With mvvm approach...how refresh the context ?

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

    I need help with multiple Ratings “stars”…… any ideas?!

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

    Good stuff.

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

    Hello, is there any way to show the values(subbed,NotSubbedBoo,willSubNow) the idea is to show these values ​​in the xaml intellisense when using the MyText="" property?

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

      Hm not sure… I don’t think so tbh. You could add xml comments on top of each option that will show up in IntelliSense?

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

      @@jfversluis hello, I mean to use enums in the bindableproperty likewise perform an action for each enum. Cheers

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

    Well, nice, but can you go into more details?
    How can I query some object for its convertor?
    var convertor = TypeDescriptor.GetConverter(typeof(Xamarin.Forms.Color));
    if (convertor is ColorTypeConverter) {
    //No luck
    } else if (convertor is Xamarin.Forms.TypeConverter) {
    //No way to get here
    }

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

      Why would you want to do that?

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

      @@jfversluis Enumarate all properties of a class during runtime and try to change them, using their default convertor, for example.

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

    Hi Gerald, your videos are great. Thanks for every content! Can you show us how we can make our apps paid subscribe and auto renew monthly?

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

      Hey thanks! I'm not sure what you mean? You mean an in-app purchase as a subscription?

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

      @@jfversluis yes, I meant app in purchase as a subscription 😄

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

      Is it possible Gerald?

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

      I think it is. Other apps do it, so it should be possible! :)

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

      @@jfversluis yes, sure I know :) then is possible to make a video too about it?

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

    : )