im having problems with SfListView inside SfTabView on android
it works fine on UWP
the problem occurs only when binding data to the listview
it loads fine on the page
but when binding data Im getting "cannot convert "header" into system.double"
public ObservableCollection<FavoritesList> BkmList { get; set; }
public BookmarksVM()
{
try
{
BkmList = new ObservableCollection<FavoritesList>(bookmarksDb.FavoritesList.ToList());
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
<tabView:SfTabView EnableSwiping="False">
<tabView:SfTabItem Title="المفضلة"> <!--ImageSource="staricon.png"-->
<tabView:SfTabItem.Content>
<AbsoluteLayout>
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All">
<xForms:SfListView x:Name="BookmarksListView" AllowSwiping="True" ItemsSource="{Binding BkmList, Mode=TwoWay}">
<xForms:SfListView.BindingContext>
<local:BookmarksVM />
</xForms:SfListView.BindingContext>
<xForms:SfListView.RightSwipeTemplate>
<DataTemplate x:Name="RightSwipeTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid BackgroundColor="#009EDA" HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Column="0">
<Grid VerticalOptions="Center" HorizontalOptions="Center">
<Image Grid.Column="0" Grid.Row="0" BackgroundColor="Transparent" HeightRequest="35" WidthRequest="35" Source="editicon.png" ClassId="{Binding ListName}">
<Image.GestureRecognizers>
<TapGestureRecognizer/>
</Image.GestureRecognizers>
</Image>
</Grid>
</Grid>
<Grid BackgroundColor="#DC595F" HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Column="1">
<Grid VerticalOptions="Center" HorizontalOptions="Center">
<Image Grid.Column="0" Grid.Row="0" HeightRequest="35" WidthRequest="35" BackgroundColor="Transparent" Source="deleteicon.png" ClassId="{Binding ListName}" >
<Image.GestureRecognizers>
<TapGestureRecognizer/>
</Image.GestureRecognizers>
</Image>
</Grid>
</Grid>
</Grid>
</DataTemplate>
</xForms:SfListView.RightSwipeTemplate>
<xForms:SfListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Text="{Binding ListName}" FontSize="Header" VerticalTextAlignment="Center"></Label>
</Grid>
</DataTemplate>
</xForms:SfListView.ItemTemplate>
</xForms:SfListView>
</StackLayout>
<ImageButton AbsoluteLayout.LayoutBounds=".9, .9, AutoSize, AutoSize" AbsoluteLayout.LayoutFlags="PositionProportional" Source="actionbutton.png" WidthRequest="50" HeightRequest="50" BackgroundColor="Transparent"></ImageButton>
</AbsoluteLayout>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
</tabView:SfTabView>
Xamarin forms 3.6.0.709228
SfListView 17.1.0.53
android target 9.0
thanks