DesignMode DesignMode DesignMode DesignMode DesignMode Class

Definition

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

public : static class DesignMode
static struct winrt::Windows::ApplicationModel::DesignMode
public static class DesignMode
Public Shared Class DesignMode
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Visual designers like Microsoft Visual Studio and Blend for Microsoft Visual Studio 2013 enable you to build UI for UWP app 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.

Properties

DesignMode2Enabled DesignMode2Enabled DesignMode2Enabled DesignMode2Enabled DesignMode2Enabled

Used to enable or disable user code inside a XAML designer that targets the Windows 10 Fall Creators Update SDK, or later.

DesignModeEnabled DesignModeEnabled DesignModeEnabled DesignModeEnabled DesignModeEnabled

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