DesignerProperties.GetIsInDesignMode Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the value of the IsInDesignMode attached property for the specified UIElement.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Shared Function GetIsInDesignMode ( _ element As DependencyObject _ ) As Boolean
Parameters
- element
- Type: System.Windows.DependencyObject
The element from which the property value is read.
| Exception | Condition |
|---|---|
| ArgumentNullException | element is Nothing. |
Show: