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
(1)
3,566 times
Add to favorites
3/26/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

VB.NET
<Window  x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="clr-namespace:VBDC.ViewModel"
   Title="{Binding Path=DisplayName}"  Height="400" Width="480" WindowStartupLocation="CenterScreen" xmlns:my="clr-namespace:VBDC.View">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Menu Grid.Row="0">
            <MenuItem  Header="_File" Cursor="Hand">
                <MenuItem Command="{Binding  CloseCommand}" Header="_Sluiten" Name="MIClose" />
            </MenuItem>
        </Menu>
        <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" />
        </Border>
         </Grid>
</Window>