I need to block a DocumentGroup\'s tab change based on a Boolean variable. For this I created a class that inherits from DocumentGroup and I am overriding the OnSelectedItem