DesignerProperties.SetIsInDesignMode Method (DependencyObject, Boolean)

 

Sets the value of the IsInDesignMode attached property to a specified element.

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

public static void SetIsInDesignMode(
	DependencyObject element,
	bool value
)

Parameters

element
Type: System.Windows.DependencyObject

The element to which the attached property is written.

value
Type: System.Boolean

The needed Boolean value.

Exception Condition
InvalidOperationException

element is null.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: