You need to test the sample in the following manner:
1. Zoom in once. The Previous icon will now become enabled.
2. Zoom in again.
3. Click on Previous icon, the map will display as after step 1. The Next icon will become enabled.
4. Click on the Next icon, the map will display as after step 2.
The application is storing the map extent changes. When the app. is initially launched, there is nothing stored. Once one starts changing the map extent by zooming in and out, then the app. pushes those map extent changes into a stack. Previous starts at the top of the stack and goes down until it reaches the bottom. Next will start at the current location in the stack and go up until it reaches the top of the stack.
Thus, Previous is disabled at the bottom. Next is disabled at the top. Both are disabled when the stack is empty.