DesignerProperties..::.GetIsInDesignMode Method
This page is specific to:Microsoft Version:2.03.03.5Silverlight 34.0
.NET Framework Class Library for Silverlight
DesignerProperties..::.GetIsInDesignMode Method

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

Namespace:  System.ComponentModel
Assembly:  System.Windows (in System.Windows.dll)
Syntax

'Usage

Dim element As DependencyObject
Dim returnValue As Boolean

returnValue = DesignerProperties.GetIsInDesignMode(element)

'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.

Return Value

Type: System..::.Boolean
The IsInDesignMode property value for the element.
Exceptions

ExceptionCondition
ArgumentNullException

element is nullNothingnullptra null reference (Nothing in Visual Basic).

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View