Net maui windows and macos how to remove blue indicator on collectionview ?

Sami 986 Reputation points
2025-11-22T08:46:44.57+00:00

After update appear blue indicator on collectionview and listview Net maui windows and macos platform how to remove blue indicator on collectionview ?

Developer technologies | .NET | .NET MAUI
{count} votes

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 5,930 Reputation points Microsoft External Staff Moderator
    2025-11-26T08:32:20.44+00:00

    Hello @Sami ,

    I've spent more time investigating this issue.

    I've tested other approaches including modifying style templates and creating custom handlers, but none successfully hide the check mark without side effects.

    User's image

    User's image

    User's image

    After the 10.0.10 update, the default WinUI selection visual is now being enforced. The ListView style configuration inherited from WinUI hasn't technically changed, but the rendering behavior has shifted. Unfortunately, there doesn't appear to be a documented or publicly supported way to simply disable this specific visual element.

    Best approach moving forward

    Given the limitations we've encountered, the most practical solution is still to handle selection manually:

    • Set SelectionMode="None" on your CollectionView to completely bypass the native selection behavior.
    • Implement your own selection logic using a TapGestureRecognizer in your ItemTemplate.
        <CollectionView SelectionMode="None" ItemsSource="{Binding Items}">
            <CollectionView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.GestureRecognizers>
                            <TapGestureRecognizer Command="{Binding Source={RelativeSource AncestorType={x:Type local:YourViewModel}}, Path=SelectItemCommand}" CommandParameter="{Binding .}" />
                        </Grid.GestureRecognizers>
                        <!-- Your item UI here -->
                    </Grid>
                </DataTemplate>
            </CollectionView.ItemTemplate>
        </CollectionView>
      
    • Control the visual state (background color, borders, etc.) through your ViewModel to indicate selected items.

    While it is not ideal, this approach is currently the only reliable way.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.