cancel selected tab change event

Jul 4, 2011 at 2:09 PM

I am trying to cancel selected tab change event based on a validation condition. I am setting e.Handled = true; in the selection change event Ribbon_SelectedTabChanged based on validation.

But this is not working, it still selects the other tab... Am I doing something wrong? Any help or pointer greatly appreciated.