DesignMode.DesignModeEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the process is running in design mode.
public:
static property bool DesignModeEnabled { bool get(); };
static bool DesignModeEnabled();
public static bool DesignModeEnabled { get; }
var boolean = DesignMode.designModeEnabled;
Public Shared ReadOnly Property DesignModeEnabled As Boolean
Property Value
bool
True if the process is running in design mode; otherwise false.
Remarks
Use this property when your custom types require special logic when running in a visual designer. For example, you can query this property to determine whether to display placeholder data instead of live data from a web service.
Note
The DesignModeEnabled property is available only in the presence of a developer certificate.