Approved
Last Updated: 14 May 2018 08:20 by ADMIN
ADMIN
Stefan Nenchev
Created on: 21 Jul 2017 07:46
Category: TabView
Type: Feature Request
5
TabView: Introduce events related to the Tab selection
We should consider adding one or more events related to the selection of the TabView control. 
3 comments
ADMIN
Stefan Nenchev
Posted on: 14 May 2018 08:20
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 :)
Jeffrey
Posted on: 01 May 2018 16:49
I agree...:)