title: xamarin forms: Couldn't change the background color of selected item on ListView
body: <p>I'm trying to remove or at least change the color of the selected item on a ListView (Master Detail).</p>
  
  <p>I didn't see any option to change the background color of the selected item.</p>
  
  <p>Here is what I have done so far:</p>
  
  <pre><code>        &lt;ListView ItemsSource="{Binding MenuItems}"
                    HasUnevenRows="True"
                    RowHeight="50"
                    &gt;
              &lt;ListView.Behaviors&gt;
                  &lt;e:EventToCommandBehavior EventName="ItemTapped" 
                                            Command="{Binding NavigateCommand}"
                                            EventArgsParameterPath="Item.ViewName"&gt;
  
                  &lt;/e:EventToCommandBehavior&gt;
              &lt;/ListView.Behaviors&gt;
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;ViewCell&gt;
                          &lt;StackLayout VerticalOptions="Center" HorizontalOptions="FillAndExpand"
                              Orientation="Horizontal"
                              Padding="20,0,0,0"
                              Spacing="10"
                              HeightRequest="50"&gt;
  
                              &lt;Image Source="{Binding Icon}"
                              WidthRequest="40"
                              HeightRequest="40"
                              VerticalOptions="Center" /&gt;
  
                              &lt;Label Text="{Binding Title}"
                              FontSize="Medium"
                              VerticalOptions="Center"
                              TextColor="Black"/&gt;
                          &lt;/StackLayout&gt;
                      &lt;/ViewCell&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <p>When I select any item of the listview, the color keeps orange.</p>
  
  <p><a href="https://i.stack.imgur.com/wqEld.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wqEld.png" alt="enter image description here"></a></p>
  
  <p>Does anybody know a workaround for this?</p>