DesignMode.DesignModeEnabled | designModeEnabled property

Applies to Windows and Windows Phone

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

Syntax


var designModeEnabled = Windows.ApplicationModel.DesignMode.designModeEnabled;

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

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

Remarks

Use the DesignModeEnabled property when your custom types require special logic when running in a visual designer. For example, a Windows Library for JavaScript control can query the DesignModeEnabled property to determine whether to display placeholder data instead of live data from a web service.

Your in-process custom types can check the design mode setting of the current process. Also, internal custom types that are activated in another process can check whether their caller is in design mode.

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.ApplicationModel
Windows::ApplicationModel [C++]

Metadata

Windows.winmd

See also

DesignMode

 

 

Show:
© 2014 Microsoft