Skip to main content

Simple way of showing Msgbox and Dialogs in WPF MVVM

I know that MVVM purists say that you should not use messageboxes and Dialogs in a MVVM application , however as a business developer you must sometimes blok the GUI to let the user pick an item or confirm there actions . After some discussions in the comunity i decided to show y

4 Star
3,566 times
Add to favorites
E-mail Twitter Digg Facebook

Solution explorer

Imports System.Windows
Public Interface IMsgBoxSendRec
    Property myWindow As Window
    Event eShowMsgbox(ByVal Txt As String, Caption As String, ByVal ButtonStyle As MessageBoxButton, ImageStyle As MessageBoxImage, ByVal myWindow As Window, ByVal sender As Object)
    Property MsgboxResult As Nullable(Of MessageBoxResult)
End Interface