You can use IsInDesignTool
to change behaviour of code if it is running in a designer (Blend), e.g.
if (System.ComponentModel.DesignerProperties.IsInDesignTool)
// code to run if in designer
else
// code to run if not in designer i.e. running actual application
SHARE: