Delen via


DesignMode.DesignModeEnabled Property

Definition

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

Boolean

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.

Applies to

See also