Table of Contents

Class DefaultPlatformModeDetector

Namespace
Splat
Assembly
Splat.Drawing.dll

Provides a default implementation for detecting whether the application is running in design mode across supported platforms.

public class DefaultPlatformModeDetector : IPlatformModeDetector
Inheritance
DefaultPlatformModeDetector
Implements
Extension Methods

Remarks

This class is typically used to determine if code is executing within a designer environment, such as Visual Studio or Blend, to enable or disable design-time specific logic. It supports multiple platforms and design environments, including WPF, Silverlight, and UWP, by checking for known design mode indicators. The detection result may be cached for performance. Thread safety is not guaranteed.

Constructors

DefaultPlatformModeDetector()

public DefaultPlatformModeDetector()

Methods

InDesignMode()

Gets a value indicating whether the current library or application is running in a GUI design mode tool.

public bool? InDesignMode()

Returns

bool?

If we are currently running in design mode.