DesignerProperties.SetIsInDesignMode Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the value of the IsInDesignMode attached property to a specified element.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Shared Sub SetIsInDesignMode ( _ element As DependencyObject, _ value As Boolean _ )
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 |
|---|---|
| ArgumentNullException | element is Nothing. |
Show: