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

net11.0, net11.0-ios27.2, net11.0-windows10.0.19041, net11.0-macos27.2, net11.0-android37.0, net11.0-tvos27.2, net11.0-maccatalyst27.2, net10.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-tvos26.0, net10.0-android36.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-windows10.0.17763, net48, net47, net471, net472, 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