How to select item with index in ListView(Xamarin Forms)? I try this
ObservableCollection<TabItem> _tabs = new ObservableCollection<TabItem>();
_tabs.Add(new TabItem { Title = "Tab item" });
_tabs.Add(new TabItem { Title = "Tab item" });
_tabs.Add(new TabItem { Title = "Tab item" });
int selector = _tabs.Count;
ListView.SelectedItem = _tabs[selector];
But it doesn't work. Help me please.
Thank you! Best wishes.