In this third WP7 programming tip, Jeff Prosise demonstrates how to disable an application bar button in code.
Source: Jeff Prosise's Blog
Application bars play an important role in the UI of many phone applications. An application bar can contain up to four buttons (and five menu items) giving the user quick and easy access to the app’s most commonly used features.
Each button is an instance of ApplicationBarIconButton, and the ApplicationBarIconButton class exposes a property named IsEnabled that allows buttons to be enabled and disabled.
See more Windows Phone programming tips by Jeff:
- Silverlight for Windows Phone Programming Tip #1
- Silverlight for Windows Phone Programming Tip #2