|Available on||.NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS|
public static class CatelEnvironment
Class containing environment information.
The default value for dependency properties that use a Properties.Resources value. Such values should be set in the constructor of the control instead of the dependency property to allow runtime switching of languages.
Gets or sets a value indicating whether the “devenv.exe” check should be bypassed. By default, the IsInDesignMode also checks whether the current process is “devenv.exe”. This behavior is not very useful when using Catel in Visual Studio extensions, so it is possible to bypass that specific check.
Gets or sets a value indicating whether property change notifications are currently disabled for all instances.
Gets or sets a value indicating whether the environment is currently in design mode.
Gets the main window of the application.
Gets whether the software is currently in design mode. Note that unless the IsInDesignMode, the value is not cached but always determined at runtime.
|initializeDesignTime||if set to
true if the software is in design mode,
Registers the default view model services in the default ServiceLocator. This call can come in handy when the services should be accessed before any view model is created.
Have a question about Catel? Use StackOverflow with the Catel tag!