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

<Window  x:Class="MainWindow"
   Title="{Binding Path=DisplayName}"  Height="400" Width="480" WindowStartupLocation="CenterScreen" xmlns:my="clr-namespace:VBDC.View">
            <RowDefinition Height="20" />
            <RowDefinition />
            <RowDefinition Height="50" />
        <Menu Grid.Row="0">
            <MenuItem  Header="_File" Cursor="Hand">
                <MenuItem Command="{Binding  CloseCommand}" Header="_Sluiten" Name="MIClose" />
        <my:TabView Grid.Row="1" HorizontalAlignment="Stretch" x:Name="tabView1" VerticalAlignment="Stretch" />
        <Border  BorderBrush="Gray" Grid.Row="2"  Margin="4,0,4,4"  BorderThickness="1" Height="45" HorizontalAlignment="Stretch"  Name="BorderBottom" VerticalAlignment="Bottom"  Width="auto" >
            <Button Command="{Binding  CloseCommand}" Content="_Close"  Height="23" Name="BtnClose" Width="75" Cursor="Hand" HorizontalAlignment="Right" Margin="0,0,4,0" />