You must remember that in order to render the control, the developer will have to execute part of his code. If the code that it runs does things (such as WCF calls) that the design context does not support, you may have problems.
For this reason, the Silverlight API contains a class DesignerPropertiesin the namespace System.ComponentModel. Use its static property IsInDesignToolto skip / mock code that runs while loading a control that is not supported in the designer.
source
share