How do I get the change event of the panel type?

I want to get the change event of the panel type and do something on panel type change. How do I get the change event of the panel type?