Click here to Skip to main content
15,917,953 members
Articles / Desktop Programming / WPF

Using a Service Locator to Work with MessageBoxes in an MVVM Application

Rate me:
Please Sign up or sign in to vote.
4.91/5 (39 votes)
5 Apr 2010CPOL9 min read 149K   2.3K   78  
Reviews a simple and testable way to show a MessageBox in any WPF or Silverlight application built with the MVVM design pattern


Daily Counts


Weekly Counts


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior)
United States United States
Josh creates software, for iOS and Windows.

He works at Black Pixel as a Senior Developer.

Read his iOS Programming for .NET Developers[^] book to learn how to write iPhone and iPad apps by leveraging your existing .NET skills.

Use his Master WPF[^] app on your iPhone to sharpen your WPF skills on the go.

Check out his Advanced MVVM[^] book.

Visit his WPF blog[^] or stop by his iOS blog[^].

See his website Josh Smith Digital[^].

Comments and Discussions