I'm using C# 6.0, WPF 4.5.2 and the PRISM-architecture 6.2.x (Unity). And I'm using a class derived from Canvas.
So, there is a class MyCanvas, which is used in a UserControl (XAML) in the way of:
<Usercontrol [...]>
<mycontrols:MyCanvas [...] />
</Usercontrol>
This works fine, but what I need to do, is to inject the Eventaggregator to the implementation of the MyCanvas-class.
The XAML seems to only call the static constructor, but I need to store the reference to the Eventaggregator.
How can I do that?
Thanks in advance.