This documentation is archived and is not being maintained.

DesignerProperties.IsInDesignMode Attached Property

Gets or sets whether a DependencyObject is running in the context of a designer.

Namespace: System.ComponentModel
Assembly: PresentationFramework (in PresentationFramework.dll)

See DesignerProperties.GetIsInDesignMode, DesignerProperties.SetIsInDesignMode
See DesignerProperties.GetIsInDesignMode, DesignerProperties.SetIsInDesignMode
See DesignerProperties.GetIsInDesignMode, DesignerProperties.SetIsInDesignMode
<object DesignerProperties.IsInDesignMode="bool" .../>

Property Value

A Boolean that indicates whether a DependencyObject is running in the context of a designer.

Component and control developers may use this property to perform different logic when running in the context of a designer than they would when running in an application.

Designers may change the value of this property to move a control from design mode to run mode and back. Components that make changes to their state based on the value of this property should override the virtual OnPropertyChanged method and update their state if their IsInDesignMode property value changes.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Show: