This project is read-only.


ActionMessage Not in Namespace


I am using VS2013 to create a WPF 45 project. Everything works fine except for the ActionMessage. I have tried setting up the namespace two ways:
  1. xmlns:cal=""
  2. xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
Then, setting up a button to use an Action using either of 2 methods:

Method 1:
        <Button Content="{Binding ConfirmButtonText}">
                <i:EventTrigger EventName="Click">
                    <cal:ActionMessage MethodName="ConfirmCommand"></cal:ActionMessage>
Method 2:
        <Button Content="{Binding ConfirmButtonText}" 
                cal:Message.Attach="[Event Click] = [Action ConfirmCommand()]" />
In all cases, the code runs as designed. However the page will not display properly in Blend or the VS designer because of an "Invalid Markup" error:
  • The name "Message" does not exist in the namespace (whichever is referenced by cal:).
  • The name "ActionMessage" does not exist in the namespace (whichever is referenced by cal:)
I want to use this product, but this is a showstopper. If the forms are not compatible with the designer or Blend, then I must abandon this otherwise awesome library.

Can anyone help?

file attachments

Closed Jan 22, 2014 at 7:24 PM by tibel


tibel wrote Jan 22, 2014 at 7:10 PM

I can't reproduce your issue with CM 1.5.2 (see attached sample project).

Martkrui wrote Apr 7, 2014 at 4:03 PM

I've seen the same issue as the reporter when using CM from a zip file and adding a reference.

When I switched to the NuGet package the issue disappeared.