i have a problem with the Tab Control, the SelectionChanged is firing multiple time either if i did not change the tab, this is my code:
    private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        int tabItem = ((sender as TabControl)).SelectedIndex;
        if (e.Source is TabControl) // This is a soultion of those problem.
        {
            switch (tabItem)
            {
                case 0:
                       //something
                       break;
                case 1:
                       //something
                       break;
            }
    }
Can someone help me to solve this issue?
Thanks a lot