DesignerProperties.GetIsInDesignMode Method (DependencyObject)

 

Gets the value of the IsInDesignMode attached property for the specified UIElement.

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

public static bool GetIsInDesignMode(
	DependencyObject element
)

Parameters

element
Type: System.Windows.DependencyObject

The element from which the property value is read.

Return Value

Type: System.Boolean

The IsInDesignMode property value for the element.

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: