I'm trying to remove or at least change the color of the selected item on a ListView (Master Detail).
I didn't see any option to change the background color of the selected item.
Here is what I have done so far:
<ListView ItemsSource="{Binding MenuItems}"
HasUnevenRows="True"
RowHeight="50"
>
<ListView.Behaviors>
<e:EventToCommandBehavior EventName="ItemTapped"
Command="{Binding NavigateCommand}"
EventArgsParameterPath="Item.ViewName">
</e:EventToCommandBehavior>
</ListView.Behaviors>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout VerticalOptions="Center" HorizontalOptions="FillAndExpand"
Orientation="Horizontal"
Padding="20,0,0,0"
Spacing="10"
HeightRequest="50">
<Image Source="{Binding Icon}"
WidthRequest="40"
HeightRequest="40"
VerticalOptions="Center" />
<Label Text="{Binding Title}"
FontSize="Medium"
VerticalOptions="Center"
TextColor="Black"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
When I select any item of the listview, the color keeps orange.
Does anybody know a workaround for this?