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?
maybe (not tested)
listview.ItemSource = mySource;
listview.SelectedItem = mySource;
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.
If you have problems, add a Repo on GitHub
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies