In my view model, I have a IMessageService, which is initialized in the constructor:
private IMessageService messageService;
public MyViewModel()
{
messageService = ServiceLocator.Default.ResolveType<IMessageService>();
}
Its Show
method works, but ShowError, ShowInformation and ShowWarning (anything in need of a resource, here the icons) crash with a MissingManifestException
pointing towards Catel.Properties.Resources.resources
manifest.
Is the error on my side (wrongly installed Catel) or is it because it's the .Net 4.0 version of Catel? Surprisingly, I have another Catel for .Net 4.0 project which doesn't show this error.
EDIT: Show
, when given a MessageImage
, works flawlessly and does show the icon.
EDIT 2: Nevermind my last edit, everything now seems to work... for no reason. Calling Show
with a MessageImage
would have "loaded" the resource or something? That seems unlikely.