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
.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page