title: WPF: Navigation/Design: How to keep track of state so I can change appearance of buttons?
body: <p>I have an application that has a top level navigation menu which consists of series of buttons within a stackpanel. When a user clicks on a button the view model processes the command and updates the value of CurrentView (type UserControl). The CurrentView is bound to the element ContentControl as below.</p>
  
  <pre><code>&lt;ContentControl Content="{Binding CurrentView}" /&gt;
  </code></pre>
  
  <p>I want the 'menu' to keep track of where the user is so that I can change the foreground of the navigation buttons, so users know where they are. What is the best way to do this? Should I wrap this 'menu' into a control?</p>
  
  <p>Some of the views passed to the ContentControl will have their own sub menus. These submenus work in the same way, and I would like to change the foreground and background for these.</p>