luismts / ValidationRulesPlugin

Create and validate property rules for all your Xamarin and Windows apps and improve the quality of your data.
https://luismts.com/
MIT License
68 stars 26 forks source link

Validation rule for selected item of Picker #11

Closed viveklpu2011 closed 2 years ago

viveklpu2011 commented 3 years ago

Want to perform validation of picker that value is selected or not from view model using validation object

luismts commented 3 years ago

You can do it by creating your ValidationRule that perform that validation and bind your property to SelectedIten in the picker...

viveklpu2011 commented 3 years ago

I am trying by passing the model in place of string in validation object but i am not getting selected value of picker. And my requirement is that when i select the value from picker i should get selected value on selection of picker

luismts commented 3 years ago

Can you show a snippet?

viveklpu2011 commented 3 years ago

Let me make clear understanding of my requirement.

I have a item source of model from view model for picker and i simply want that some value is selected or not from picker and if selected it should show on selected event of picker

luismts commented 3 years ago

I dont get it, sorry.

luismts commented 3 years ago

Any news on this @viveklpu2011 ?

luismts commented 2 years ago

The new version has support for Lists that you can use with your pickers. Check it out here