How should we contact you? Let us know!

Catel and Fody

Aspect oriented programming with Catel

Fody is an extensible tool for weaving .NET assemblies. For more information about Fody, see its official website. There are multiple Fody addons that work very well with Catel.

Catel.Fody

The PropertyChanged.Fody plugin for Fody already supports Catel out of the box, but only for property change notifications. However, with the Catel.Fody plugin, it is possible to automatically weave a simple property into a Catel property.

The following property definition:

will be weaved into:

How to install

To weave assemblies with Catel properties, you need to perform the following steps:

– Install the Catel.Fody NuGet package

– Update Weavers.xml and make sure it contains <Catel />

For more information, see the official documentation.

Anotar.Catel.Fody

Simplifies logging through a static class and some IL manipulation. This means that instead of having to use the actual logging API of Catel (creating ILog instance using the LogManager, writing to that log via instances), you can call methods on the static Log class.

The following code:

Will be weaved into:

 

Back to Top
Fork me on GitHub