Have a look at this page:
http://www.codeproject.com/KB/WPF/Tr...ViewModel.aspx