Why is my ApplicationBarIconButton null?
try this
Microsoft.Phone.Shell.ApplicationBarIconButton btn = ApplicationBar.Buttons[0] as Microsoft.Phone.Shell.ApplicationBarIconButton; btn.IsEnabled = false;