Click or drag to resize

XAMLHelperGetIsInDesignMode Method

Determines whether the DependencyObject is in design mode or not.

ATTENTION: This is only a wrapper for the DesignerProperties.GetIsInDesignMode(DependencyObject) method (WPF) and the DesignMode.DesignModeEnabled method (UWP).

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static bool GetIsInDesignMode(
	DependencyObject dependencyObject
)

Parameters

dependencyObject
Type: System.WindowsDependencyObject
The element from which the property value is read. In UWP this is ignored and can be null.

Return Value

Type: Boolean
true if the process is running in design mode; otherwise false.
Exceptions
ExceptionCondition
InvalidOperationExceptiondependencyObject is null.
See Also