DesignMode class

8 out of 11 rated this helpful - Rate this topic

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

Syntax


var designMode = Windows.ApplicationModel.DesignMode;

Attributes

MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.ApplicationModel.IDesignModeStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

Members

The DesignMode class has these types of members:

Methods

The DesignMode class inherits methods from the Object class (C#/VB/C++).

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 2012 for Windows 8 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

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.