Is there a way to discover, when creating visual components, if we are in run-time or design time?

Thank you
Fernando.