on-internet
← Community

How to change the background color of Selected item in CollectionView? .Net Maui

Stack Overflow ·

In Android, the default color is orange but I don't know how to change it. I tried the demo code of the official Microsoft's Docs, but it doesn´t work. //Xaml// <CollectionView ItemsSource="{Binding Products}" ItemTemplate="{StaticResource OfferProductStyle}" ItemsLayout="VerticalGrid,1" SelectionMode="Single" x:Name="MyCollectionView"> </CollectionView>

Comments

Sign in or sign up to comment and upvote.

No comments yet.