Forum Cross Platform with Xamarin

How to select custom string in ListView

I have a simple ListView with string[] as ItemsSource. On opening page I want to set one string as selected using SelectedItem. Is there a simple way to do this?



Best Answer


  • Hash6Hash6 USMember

    Thanks. That was quite simple, but I didn't see that earlier because item selected that way doesn't appear as selected in my list, but when I display alert with selected item it is set properly. Now I have to check out why it's not appearing.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    If you have problems, add a Repo on GitHub

Sign In or Register to comment.