DesignMode.DesignModeEnabled | designModeEnabled property

Expand
1 out of 3 rated this helpful - Rate this topic

DesignMode.DesignModeEnabled | designModeEnabled property

[This documentation is preliminary and is subject to change.]

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 Release Preview

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

See also

DesignMode

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD