Xamarin.Forms 101: Commands | The Xamarin Show

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • Let's take a step back in a new mini-series that I like to call Xamarin.Forms 101. In each episode we will walk through a basic building block of Xamarin.Forms to help you build awesome cross-platform native applications. This week we will look at MVVM and Commands to simplify development when users interact with the user interface.
    Show Notes:
    * [Xamarin.Forms Data Binding Documentation](aka.ms/ch9-motz-xf-databinding)
    * Find James on: [Twitter]( / jamesmontemagno), [GitHub](github.com/jamesmontemagno), [Blog](montemagno.com), and his weekly development podcast [Merge Conflict](www.mergeconflict.fm).
    * [Follow @JamesMontemagno]( / jamesmontemagno )
    * Never Miss an Episode: [Follow @TheXamarinShow]( / thexamarinshow )
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    These 101s is such a good approach to learning.

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

    I LOVE learning Xamarin Forms on Channel 9 with Xamarin Show 101. Montemagno you are the #1 !!!

  • @jaimerojas6578
    @jaimerojas6578 5 ปีที่แล้ว

    Great! This looks pretty easy and useful!

  • @pramodpatil4148
    @pramodpatil4148 5 ปีที่แล้ว +1

    Very informative!!!

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

    Many thanks, you made it soooo super easy

  • @benitohernandezramirez6276
    @benitohernandezramirez6276 5 ปีที่แล้ว +2

    Nice!! :D

  • @mayurprasad1859
    @mayurprasad1859 5 ปีที่แล้ว

    I think declaring Command like this is better then creating a variable and instance of ICommand/Command.
    public Command IncreaseCount
    {
    get
    {
    return new Command((object obj) =>
    {
    count++;
    });
    }
    }
    I love Xamarin.Forms 101, looking forward to more awesome videos.

    • @ShitBrick785
      @ShitBrick785 5 ปีที่แล้ว +1

      Let's say you have 3 buttons that should all 3 do the same thing when you invoke the command. With your way wouldn't there be 3 different references versus 1?

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

    How would you do the same exact thing when user starts typing inside entry control and the text changed?

  • @teriyakov
    @teriyakov 4 ปีที่แล้ว

    Say my view-model had a list of objects, and as part of the child object properties, i wanted to include commands. Can anyone point me to such an implementation? Is this even the right way to do it or should I be following a different pattern for firing model specific events?
    Also, slightly off topic but can the child objects be view-models themselves? Or is that an anti-pattern?

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

      The answer is yes.
      If you've got a listview (list of objects), you can bind a command to those objects so that something happens when you click on one of those children.

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

    Here's the DataBinding vid James referenced at 2:50 that would be in the show notes in the description, but I don't see it there
    th-cam.com/video/pr03CYqhFr4/w-d-xo.html&ab_channel=MicrosoftDeveloper

  • @purplepanther4153
    @purplepanther4153 4 ปีที่แล้ว

    James I dont have problem with xamarin but Its been in 2 hours already and I cant even fire up xamarin project with VS 2019. ITs bad mate.

    • @gabrielsidequest
      @gabrielsidequest 4 ปีที่แล้ว

      Tru tho.

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

      Hi guys. The setup and version show in this video is different of VS 2019. So the difficults is very more.
      I'm using Xamarin Studio 6.1.5, Xamarin.iOS 10.3.1.8, Xcode 8.2.1, Xamarin.Android 7.0.2.42 and Mac OS X 10.13.6. This setup is fully functionly.
      For Xamarin Forms newer my tips is watch videos more new for exemple channel9.msdn.com/Series/Xamarin-101 of Sep, 2019.

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

    I wish if Xamarin supports html instead of shi*** xaml.