RadicalFx / Radical.Windows

Radical is an infrastructure framework whose primary role is to help in the development of composite WPF applications based on the Model View ViewModel pattern.
http://www.radicalframework.com/
MIT License
3 stars 2 forks source link

Introduce the concept of Region(s) lifecycle events callbacks #156

Open mauroservienti opened 8 years ago

mauroservienti commented 8 years ago

A Region is a WPF MarkupExtension, thus it's instance is created and managed by WPF, there are scenarios in which it could be interesting to enable regions to have dependencies coming from other sources, such the IoC container. We have no control on regions creation however we have full control on region registration and shutdown via the RegionManager. The RegionManager could be evolved to allow injection of callbacks so that a third party can add custom behaviors when a region is registered and when a region is shutdown. Would be interesting to:

mauroservienti commented 8 years ago

Or allow interceptors to be plugged in.