Skip to content

PlatformModeDetector class

Defined in

Namespace: Splat Assembly: Splat.Drawing.dll Full name: Splat.PlatformModeDetector Modifiers: public static

Summary

View source

        Provides methods to detect whether the application is running in design mode, such as within a GUI design editor.
        Allows overriding the platform mode detection logic for customization or testing purposes.

Applies to

net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-windows10.0.17763, net9.0, net9.0-windows10.0.17763, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net462, net481

Remarks

This class is intended for use in scenarios where it is necessary to distinguish between design-time and run-time environments, such as when developing custom controls or components. The detection logic can be overridden to support different platforms or testing requirements. All members are thread-safe for typical usage patterns.

Methods

NameSummary
static OverrideModeDetectorOverrides the mode detector with one of your own provided ones.
static InDesignModeGets a value indicating whether we are currently running from within a GUI design editor.
Inherited members