VisualState for SelectedItem in ListView?

TMainTMain USMember ✭✭

Is there a way to set something equivalent to VisualState for the SelectedItem in a ListView? I'm using a ViewCell instead of a TextCell and selecting an item doesn't change anything, like colors of the selected item. XAML-heavy solution (as opposed to code-behind) preferable if possible.

Best Answer


  • ChaseFlorellChaseFlorell CAInsider, University mod

    I too would like to know this

  • IanGeogheganIanGeoghegan USUniversity ✭✭

    Me too. I have created a custom cell and cell renderer to change the background which works on all cells save the one selected.

  • TMainTMain USMember ✭✭

    @igeoghegan‌ , brilliant, thank you!

  • ChaseFlorellChaseFlorell CAInsider, University mod

    @igeoghegan‌ would you be willing to share your Android Renderer for this as well?

  • IanGeogheganIanGeoghegan USUniversity ✭✭

    @ChaseFlorell‌ I haven't built one as I haven't had too, when you do, please pay it forward!

Sign In or Register to comment.