DesignMode.DesignModeEnabled Property


Gets a value that indicates whether the process is running in design mode.

 static property bool DesignModeEnabled { bool get(); };
bool DesignModeEnabled();
public static bool DesignModeEnabled { get; }
var boolean = DesignMode.designModeEnabled;
Public Shared ReadOnly Property DesignModeEnabled As Boolean

Property Value


True if the process is running in design mode; otherwise false.


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.


The DesignModeEnabled property is available only in the presence of a developer certificate.

Applies to

See also