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

Converter not hitting on command #7

Closed viveklpu2011 closed 3 years ago

viveklpu2011 commented 3 years ago

Coverters is not hitting when perform command event so err msg not showing in label and placeholder entry.

I am using mvvm helper as a base view model

luismts commented 3 years ago

I think you are talking about ValueFormatter right?

ValidateCommand triggers the validation process with the value you already have. If you want to format the value, you need to change the value in order to trigger the ValueFormatter.

luismts commented 3 years ago

Or you are talking about Binding Converters?

viveklpu2011 commented 3 years ago

InverseBoolConverter is not hitting on command, but it should hit when there is any validation error

This is my code below in which placeholder color as well as label is not visible when entry is null

                <Label
                    IsVisible="{Binding CustomerName.IsValid, Converter={StaticResource InverseBoolConverter}}"
                    Style="{StaticResource ErrorTextStyle}"/>
luismts commented 3 years ago

This is related to your implementation. Nothing to do here.