MVVM Light DialogMessage
- by Cha0sEngine
hi, im trying to use the mvvmlight DialogMessage.
var message = new DialogMessage(
"Confirm Delete", RemoveAddressAction)
{
Button = MessageBoxButton.OKCancel,
Caption = "Caption??"
};
VS2010 undelines the "Button = MessageBoxButton.OKCancel" line complaining about
"Cannot convert source type 'System.Windows.MessageBoxButton [PresentationFramework, Version=3.0.0.0, Culture...] to target type 'System.Windows.MessageBoxItem [GalaSoft.MvvmLight, Version=3.0.0.29216, ...]
And a similar issue on the code behind on the view when I try to use the DialogMessage to show the messagebox.
Has anyone encountered this before? I have no clue how to fix it.
Thanks.