Hello,
Please check ListViewItemBackgroundSelected, ListViewItemBackgroundPressed
, ListViewItemBackgroundSelectedPointerOver
and ListViewItemBackgroundSelectedPressed
in Windows UI Library, and set other colors. Try to add the following code in App.xaml
under Platforms/ Windows :
<maui:MauiWinUIApplication.Resources>
<SolidColorBrush x:Key="ListViewItemBackgroundSelected" Color="Red" />
<SolidColorBrush x:Key="ListViewItemBackgroundPressed" Color="Red" />
<SolidColorBrush x:Key="ListViewItemBackgroundPointerOver" Color="Red" />
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPointerOver" Color="Red" />
</maui:MauiWinUIApplication.Resources>
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.