.Net Maui Windows ListView

Moser Benjamin 1 Reputation point
2022-07-28T19:04:30.167+00:00

Hey Guys!
I am currently working on an Windows Application in Maui (i know overkill but nevermind) and would like to change the color of the Selected Item Template (Windows has this little line next to the item). I would like to change that for normal listviews aswell as in the Flyout Menu. I havent found anything on how to change that yet so i am thankful for every answer i could get.
Thanks for your answers in advance!

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,491 Reputation points Microsoft Vendor
    2022-07-29T05:59:20.353+00:00

    Hello,​

    I would like to change that for normal listviews aswell as in the Flyout Menu.

    Yes, you can set a ContentPage as <FlyoutPage.Flyout> at first. Then add Listview as flyout menu in the FlyoutMenuPage.

    For more details, you can refer to this document: Create a FlyoutPage, please note: you need to change <CollectionView> to <ListView> in FlyoutMenuPage

    Best Regards,

    Leon Lu


    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.


Your answer

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