MVVM Light DialogMessage
Posted
by
Cha0sEngine
on Stack Overflow
See other posts from Stack Overflow
or by Cha0sEngine
Published on 2011-01-12T10:51:38Z
Indexed on
2011/01/12
10:53 UTC
Read the original article
Hit count: 181
mvvm-light
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.
© Stack Overflow or respective owner