У меня есть приложение silverlight 3 с последней версией Caliburn RTW.
У меня есть кнопка со следующим свойством caliburn в XAML:
PresentationFramework: Message.Attach = "ContainerCommand ClassesCommand ()" />
В моем файле module.cs:
_container.RegisterType(typeof(ClassesCommand), new ContainerControlledLifetimeManager());
_regionManager.RegisterViewWithRegion("MenuRegion", () => _container.Resolve<ClassesButton>());
В _container.Resolve () я получаю AG_E_PARSER_BAD_PROPERTY_VALUE для "ContainerCommand ClassesCommand ()" в XAML.
Мой ClassesCommand.cs:
public class ClassesCommand
{
public void Execute()
{
//
}
public bool CanExecute()
{
//
return true;
}
}
JD.