Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a quick introduction for developers who don't have a lot of time to read all the docs. This document contains the absolute basics of what a developer needs to know.

...

This pare contains the core functionality of Catel and what you should know when using Catel.

Logging / debugging

If you ever think Catel is behaving strange or does not work as expected, make sure to enable the logging. Below is an example on how to enable the logging:

Code Block
#if DEBUG
    LogManager.RegisterDebugListener();
#endif

Catel will then log everything to the output window and provide all the information about its internals.

For more information, read about logging.

Catel properties

All properties in classes deriving from ModelBase (thus also ViewModelBase) require a special property definition.

...

Handling hierarchy and parent/child view models

Note that Catel is already fully aware of parent/child relations of view models so you don’t have to do anything for this yourself. For more information, read nested user controls.

Communication between view models

...