so I have xamarin.forms 4.5.0.725
in my project, I have a content page, with a listview like this
<RefreshView Refreshing="Refresh_Refreshing" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<ListView x:Name="alertsList" SelectionMode="None" SeparatorColor="DimGray" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" WidthRequest="24" Aspect="AspectFit" Source="someicon"/>
<Label Grid.Column="1" Text="{Binding Path=Message, Mode=OneWay}" FontSize="Small" VerticalTextAlignment="Center" />
<Button Grid.Column="2" Text="Fix" BindingContext="{Binding}" Clicked="Fix_Clicked" FontSize="Small" HeightRequest="35" WidthRequest="50" VerticalOptions="Center"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</RefreshView>
and the button clicked handle
void Fix_Clicked(object sender, EventArgs e)
{
DisplayAlert("alert", "button clicked", "ok");
}
everything works fine until I update xamarin.form to 4.6 or above,
I tried 4.6.0.1180
4.7.0.1351
4.8.0.1364
the button in listview row does not fire click event anymore, I also tried Command
and CommandParameter
instead of Clicked
anyway to fix this or workaround ?
EDIT: created a sample project from google drive
run it, click was fine; "manage nuget packages for solution", update XF to 4.6.0.1180 or above, run it again, click does not work.