ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Xamarin.Forms 101: Data Binding | 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 Data Binding to simplify development.
    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 )

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

  • @josephizang6187
    @josephizang6187 5 ปีที่แล้ว +23

    These 101s seem insignificant but they are extremely precious

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

    Thank you Xamarin Show!

  • @CitizenDeveloper
    @CitizenDeveloper 5 ปีที่แล้ว +4

    Thanks James! Looking forward to more episodes in the mini-series. Any chance you can show some examples of working with databinding across multiple views, using MVVM? Cheers!

  • @sahawndada
    @sahawndada 4 ปีที่แล้ว +1

    Great Tut James!!

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

    Beautiful

  • @TechMalaya
    @TechMalaya 4 ปีที่แล้ว +30

    As a beginner as I can say this is hard . You need to know everything.

    • @priya_almond8864
      @priya_almond8864 4 ปีที่แล้ว +1

      I m stuck here what should i do now anyone help me

    • @ivaylodeshev3716
      @ivaylodeshev3716 4 ปีที่แล้ว +4

      But hey it's AUTOMATICALLY... and easy and AUTOMATECALLY, did I forget to mention AUTOMATICALLY like the dude said it 89423 times in the video. But non of the less it's VERY EASY!!

    • @S3louk
      @S3louk 4 ปีที่แล้ว +1

      @@ivaylodeshev3716 it is :D

    • @tmuhlhausen4091
      @tmuhlhausen4091 4 ปีที่แล้ว +4

      It actually is very informative, people looking for handouts... do some work

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

      If you have no coding experience, this will be hard. Take some coding tutorials that are for brand-new beginners to coding before doing tutorials about features of the IDE.

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

    Very informative 👍

  • @John-fd9fe
    @John-fd9fe 2 ปีที่แล้ว

    Greate!

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

    I am using a mobile app to write the code and I get an error saying "A field initializer cannot reference the non-static field, method, or property 'MainViewModel.Name'" sometimes this app gives bad feedback for debugging specially in xaml . Any idea where I should find the issue? Because his Name string isn't static. And when I change mine to static I need to start changing a lot of thinga

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

    I'm using a tabbed app. I'm not sure how to do it that when you press button on one tab it updates content on another tab?

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

    Thanks this finally put a light bulb over my head of why to bother with what seems like extra code using the ViewModel

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

    why i am not able to add references in xamarin.forms.. its working fine with 2017 version, but why it is not present in 2019. and how I can add web service in xamrin form?? please help me anyone.

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

    Thanks

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

    i followed this and even tho it displays it at the beginning it doesnt update the display when something changes. I only wanted it for labels not text fields as well. If anyone sees this please help.

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

    I love this guy's shirts!

  • @edwardhandrich6043
    @edwardhandrich6043 4 ปีที่แล้ว +7

    @6:00, DisplayName is a getter. It doesn't update. What you actually did is call the getter which returns a string that you didn't use. For beginners this is horribly confusing, gives them the impression that they should be calling DisplayName during an PropertyChanged. Does anybody review these videos before publishing?

  • @ivaylodeshev3716
    @ivaylodeshev3716 4 ปีที่แล้ว +2

    If this dude gets a dollar for every time he says automatically and easy, he would be a billioner !!

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

    I love this wahaahahahah Thank you Xamarin
    I create my very first Android application within 2 days using xamarin very nice for .Net Developer like me
    Windows form + Android app = Barcode to PC scanner

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

    this is hard

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

    Can you explain in video what difference between Style and template please?

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

    If I'm using a ControlTemplate can I still do binding?

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

      yes

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

      use TemplateBinding

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

    Cant set the binding context in the MainPage.xaml. Only in the MainPage.cs and its not working 2020.
    Still Great Tutorial everything else works. U can fix it by setting the binding context in code behind inside the constructor.

  • @aa-xe5gq
    @aa-xe5gq 5 ปีที่แล้ว +7

    The data binding is much simpler in Angular than Xamarin.

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

      much much

    • @John-fd9fe
      @John-fd9fe 2 ปีที่แล้ว +1

      And in Vue. But we have to remember we are not using web technology.

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

    Thanks Microsoft , Please enable Dark Mode in the tutorials.

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

    Fixed it just add the using statements in xaml especially the local.

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

    please help me by making a video on how to bind a list to a label?

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

    Did he say "for all intense purposes"?

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

    doesn't exist in latest Version. 2020

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

    I miss vue.js reactivity system.

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

    This is just such ugly boiler plate code (6:00), why after all these years (at least 8) aren't Microsoft promoting something nicer like property changed via an attribute ?

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

    One of the things that make MVVM difficult to grasp is its pointless name. As James explains the intuition, he mentions data, code-behind business logic and visual components on the UI. Note how not one word of that is "Model" or "View" or View-Model

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

    Pleaseeeee xamarin + wcf

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

      Have you looked at: docs.microsoft.com/en-us/xamarin/cross-platform/data-cloud/web-services/walkthrough-working-with-wcf

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

    What was wrong with really simple: Key_click { Text_Displayed.Text = TextEntered.Text } ; Good grief, things are getting worse, not better.

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

    Honestly, screw this. I'm going to live in the woods.

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

    wtf was this?