The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ModeDetector Class

Summary

A helper class which detect if we are currently running via a unit test or design mode.
Namespace
Splat
Base Types
  • object
graph BT Type-->Base0["object"] Type["ModeDetector"] class Type type-node

Syntax

public static class ModeDetector

Methods

Name Value Summary
InUnitTestRunner() bool
Gets a value indicating whether we are currently running from a unit test.
static
OverrideModeDetector(IModeDetector) void
Overrides the mode detector with one of your own provided ones.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.