WPF MVVM – Simple ‘MessageBox.Show’ With Action And Func(www.deanchalk.me.uk)
submitted by
ButtonChrome(230) 2 years ago
In the MVVM world, things like message boxes (MessageBox.Show) and Dialogs (open file, save file etc), don't naturally fit.
These popups are closely tied to the ‘View’ part of MVVM, but they can only really be invoked from the ‘ViewModel’ which will break the clean separation in MVVM.
The solution I came up with, is to use generic Action and Func Delegates.
|category: Windows Presentation Foundation
|Views: 163
tags:
WPF another
Everyones tags:
Your Tags: