Selection Changed

21 Feb 2018 / 1 minute to read

When selection changed due to swiping or by dynamically setting the SelectedIndex property of SfTabView, there is an event available in tab view control to get notified for the change.

tabView.SelectionChanged += SfTabView_SelectionChanged;

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

Enable Swiping

When selection changed is needs to be restricted through user interaction, EnableSwiping property of SfTabView can be set as false.