Using Messenger leads ViewModel assembly references PresentationFramework

Oct 29, 2011 at 5:32 PM

I've tried to use Mvvm Light in order to show confirmation message box and realized that GalaSoft.MvvmLight assembly references PresentationFramework.

Do you think that reference to the pure UI assembly from the assembly with ViewModels is not evil?

Why did not you split the library on interface part and implementation part, especially since there already is GalaSoft.MvvmLight.Extras.

I really want to know your reasons :)

Ed.ward

Coordinator
Oct 31, 2011 at 9:17 AM

Hi,

There is still one class (DialogMessage) which uses the PresentationFramework. This is something that I want to change in V4, by replacing the MessageBox-related enums with "UI-agnostic" values.

"Evil" is a big word for something like that, but I agree that it is not as clean as it could be ;)

Cheers,
Laurent