Why is my ApplicationBarIconButton null?
I use a bindable app bar control from here The download link is at the bottom of the article.
Makes life much easier and saves you from having to put code in the code behind.