DesignerProperties.GetIsInDesignMode Method
Silverlight
Gets the value of the IsInDesignMode attached property for the specified UIElement.
Namespace: System.ComponentModel
Assembly: System.Windows (in System.Windows.dll)
Parameters
- element
- Type: System.Windows.DependencyObject
The element from which the property value is read.
| Exception | Condition |
|---|---|
| ArgumentNullException |
element is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
System.UnauthorizedAccess
When I call DesignerProperties.GetIsInDesignMode or DesignerProperties.IsInDesignTool, Visual Studio crashes with a System.UnauthorizedAccess message... does anyone know why?
- 1/14/2011
- Leonardo Seccia