TabView: Introduce events related to the Tab selection
We should consider adding one or more events related to the selection of the TabView control.
5 comments
ADMIN
Lance | Senior Manager Technical Support
Posted on:11 Mar 2022 19:47
Hello Ryan,
Correct, this is still marked as Unplanned. The Status will change to "In Development" if the team starts working on it.
You can increase the demand for this feature by adding your vote. In the meantime, you can easily get the exact same functionality with the PropertyChanged event:
Hi,
We will consider introducing such events, in the meantime, there is a straight-forward approach to achieve your requirement by subscribing to the PropertyChanged event of the RadTabView and checking whether it is the SelectedItem that is affected. For example:
private void TabViewGettingStartedXaml_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "SelectedItem")
{
Debug.WriteLine(((sender as RadTabView).SelectedItem as TabViewItem).HeaderText);
}
}
This should work for you.
Jannik
Posted on:10 May 2018 08:59
I agree, a SelectionChanged would be nice to have :)