/// This is the event that is used to access the tabcontrol when the user
changes his selection of the tab.
private void tabctrl_SelectionChanged(object sender, SelectionChangedEventArgs
if (tabctrl.SelectedIndex == 0)
/// Give your condition here so that u can change the header
color of the tab items accordingly.
tabAlert1.Background = Brushes.Blue;
tabAlert2.Background = Brushes.Red;
Saturday, December 13, 2008 1:13 PM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.