HI,
Say I have a favourites swipe action which on click toggles a favourite for the row.
I want to show the correct image state for if its currently a favourite or not.
i.e.
<syncfusion:SfListView.StartSwipeTemplate>
<DataTemplate x:Name="StartSwipeTemplate">
<Grid BackgroundColor="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
Grid.ColumnDefinitions>
<Grid
Grid.Column="0"
BackgroundColor="#009EDA"
HorizontalOptions="Fill"
VerticalOptions="Fill">
<Grid HorizontalOptions="Center" VerticalOptions="Center">
<ImageButton
Grid.Row="0"
Grid.Column="0"
BackgroundColor="Transparent"
Clicked="ImageButton_OnClicked"
HeightRequest="35"
Source="favouritesdatatick[HOW TO CHANGE THIS]"
WidthRequest="35" />
Grid>
Grid>
Grid>
DataTemplate>
syncfusion:SfListView.StartSwipeTemplate>
How can I access my ImageButton (in say ListView_SwipeStarting) and then set the imageButton accordingly?
Or can I just bind the image value to the ViewModel associated with the ListView row?
Thanks
Matt