@Mauricio Feijo: Nice solution -- will this work in WP7 or just WP8?

My WP7 app used C# to change the app bar buttons (see example on StackOverflow), but your solution is much more elegant.  Well done!

Herbie