enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
589 stars 100 forks source link

Problem with validations in last version #366

Open jldearmas opened 9 months ago

jldearmas commented 9 months ago

Describe the bug After update to last version, the view where I have been used validations for a long time stop compiling

Sample code

<material:TextField 
  HorizontalOptions="FillAndExpand" WidthRequest="430" HeightRequest="56" CornerRadius="4" Grid.Row="1" 
  AccentColor="{StaticResource Gray950}" TextColor="{StaticResource Gray54}" BorderColor="{StaticResource Gray54}" 
  TitleColor="{StaticResource Gray54}" Title="{x:Static strings:AppStrings.LoginUsernameLabel}" 
  Text="{Binding Username, Mode=TwoWay}" ReturnCommand="{Binding KeyEnterCmd}">

  <validation:RequiredValidation Message="{x:Static strings:AppStrings.LoginUsernameRequiredMsg}"/>

</material:TextField>

Error XFC0009 No property, BindableProperty, or event found for "Validations", or mismatching type between value and property.

Screenshots image

jldearmas commented 9 months ago

The problem is with versions: 4.4.2 and 4.4.3. When I a downgraded to version 4.4.1 (the one that I had originally) the problem is gone