Jan 6, 2011 at 8:18 AM
Edited Jan 6, 2011 at 8:25 AM
I am having trouble with the following code:
RoutedMessaging:Message.Attach="[AttachedEvent MyNamespace.MyClass.MyAttachedEvent] =[Action DoAction($eventArgs)]"
The XAML class is in a different assembly to "MyClass". When when XAML is run, I get an error Cannot Find Type "MyNamespace.MyClass".
I have tried:
a) Making sure MyClass is in the same assembly as the XAML file
b) Registering MyClass in my IOC container
c) Adding MyClass to the same namespace as the view, and referencing it as "[AttachedEvent MyClass.MyAttachedEvent]...."
None of these worked
As a test, i tried hooking up to the TextBoxBase.TextChanged attached event - this worked fine.
I am using Caliburn (full) v 126.96.36.199