Windows Dev Center

DesignMode class

Enables you to detect whether your app is in design mode in a visual designer.

Syntax


var designMode = Windows.ApplicationModel.DesignMode;

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The DesignMode class has these types of members:

Properties

The DesignMode class has these properties.

PropertyAccess typeDescription

DesignModeEnabled

Read-onlyGets a value that indicates whether the process is running in design mode.

 

Remarks

Visual designers like Microsoft Visual Studio and Blend for Microsoft Visual Studio 2013 enable you to build UI for Windows Store apps by editing activated instances of your custom types. Design tools create an instance of your app in a special authoring mode, known as design mode. When your app runs in design mode, it can execute special logic that enables coordination with the visual designer.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2015 Microsoft