Xamarin.Forms 101: Command Parameters

Поділитися
Вставка

КОМЕНТАРІ • 17

  • @fadwadhifi6056
    @fadwadhifi6056 5 років тому +6

    How about getting parameters from entries ? like the case of registration form !

    • @RaabStephan
      @RaabStephan 4 роки тому +1

      Well, you would set a {Binding inputValue} in your xaml that you reference in your code-behind (VM, see data binding video). So then when the property changes, you'll access what they've input in your VM.

    • @RaabStephan
      @RaabStephan 4 роки тому

      Another option, could be doing what James mentioned in this video (ua-cam.com/video/ewctH8RyDiA/v-deo.html)

  • @ihorbond
    @ihorbond 5 років тому +1

    How do you instantiate a custom class instance with constructor parameters in xaml and pass it as CommndParameter ?

  • @axlrosevillanueva3173
    @axlrosevillanueva3173 5 років тому +3

    Thanks for the tutorial. how about multiple parameter with different datatype? how can I do that?

  • @TVsBen
    @TVsBen 5 років тому +2

    Something I've struggled with is dealing with Pickers in the ViewModel instead of the code-behind. A picker is bound to a complex List rather than just primitives. I've always cast Picker.SelectedItem to my object and then invoked the business logic in the ViewModel. Is there a better way? The doc seems to sidestep this issue.

    • @RaabStephan
      @RaabStephan 5 років тому

      Great question, I've wondered the same thing.

  • @uccoskun
    @uccoskun 4 роки тому

    very good and simple to understand.

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

    Thank you!

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

    many thanks

  • @giridharan805
    @giridharan805 4 роки тому

    i had doubt on IncreaseCommand get property without set property assign how did u assign the value to increase command ...?

  • @albertoha94
    @albertoha94 5 років тому +1

    I didnt knew they could use pasams. Thanks!

  • @HSE-MS
    @HSE-MS 5 років тому

    I working on a custom ContentView so I am wondering how to pass the entire ContentView in CommandParameter?

  • @sahawndada
    @sahawndada 4 роки тому

    Great stuff!

  • @jaimerojas6578
    @jaimerojas6578 5 років тому

    Very useful thanks!

  • @mati.kowal7
    @mati.kowal7 4 роки тому

    you rock dude

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

    Seems the answer might come from here