<p>I have several wpf pages with update/delete/add buttons.  I want to display to the user messages like "successful delete", etc.  How can I best implement this so the message is defined in a single place (similar to an asp.net master page) and I can update this message from anywhere?</p>

[{'answer_id': 50199, 'author': 'Guy Starbuck', 'author_id': 2194, 'author_profile': 'https://Stackoverflow.com/users/2194', 'pm_score': 3, 'selected': True, 'text': '<p>You may want to consider doing a publish/subscribe ("Observer" pattern) -- define a "status changed" event on a base page, and create a custom control that sets up a delegate and event handler to listen for status updates.</p>\n\n<p>Then you could drop the custom control on any page that inherits from the base, and it would automatically listen for and display status messages whenever the event is fired.</p>\n\n<p><strong>Edit:</strong> I put together a sample implementation of this pattern and <a href="http://weblogs.asp.net/guystarbuck/archive/2008/10/08/shared-message-area-in-wpf-using-publish-subscribe.aspx" rel="nofollow noreferrer">published a blog post</a> walking through the code.</p>\n'}, {'answer_id': 50214, 'author': 'Gishu', 'author_id': 1695, 'author_profile': 'https://Stackoverflow.com/users/1695', 'pm_score': 1, 'selected': False, 'text': '<p>I don\'t think you have the ASP.Net master pages translated to the <em>WPF Page</em> world just yet.<br>\nA workaround till MS gets there, I would probably put a Control at the top of the page (or wherever) that just displays a particular User-level "<a href="http://msdn.microsoft.com/en-us/library/ms171565.aspx" rel="nofollow noreferrer">Application Setting</a>". You can update the string property like</p>\n\n<pre><code>MyAppUserSettings.StatusMessage = "You just deleted the administrator!" \n</code></pre>\n\n<p>Crude but will get the job done I think!</p>\n'}]
['https://Stackoverflow.com/questions/50151', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3047/']