enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
579 stars 98 forks source link

Problem with validations in last version #366

Open jldearmas opened 4 months ago

jldearmas commented 4 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 4 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