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.
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.
How about getting parameters from entries ? like the case of registration form !
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.
Another option, could be doing what James mentioned in this video (ua-cam.com/video/ewctH8RyDiA/v-deo.html)
How do you instantiate a custom class instance with constructor parameters in xaml and pass it as CommndParameter ?
Thanks for the tutorial. how about multiple parameter with different datatype? how can I do that?
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.
Great question, I've wondered the same thing.
very good and simple to understand.
Thank you!
many thanks
i had doubt on IncreaseCommand get property without set property assign how did u assign the value to increase command ...?
I didnt knew they could use pasams. Thanks!
I working on a custom ContentView so I am wondering how to pass the entire ContentView in CommandParameter?
Great stuff!
Very useful thanks!
you rock dude
Seems the answer might come from here