Selection Changed

23 Feb 20181 minute to read

The SelectionChanged event notifies when the selection is changed due to swiping or dynamically setting the SelectedIndex property of SfTabView.

tabView.SelectionChanged += SfTabView_SelectionChanged;

		// Raised when selected index changed
	private void SfTabView_SelectionChanged(object sender, SelectionChangedEventArgs e)
	{
		var selectedIndex = e.Index;
	}

Enable swiping

When the selection changed event needs to be restricted through user interaction, set the EnableSwiping property of SfTabView to false.