/// <summary>
		/// Refreshes the application bar.
		/// </summary>
		private void RefreshAppBar()
		{
			if (ApplicationBar != null)
			{
				return;
			}

			// Creates the app bar.
			ApplicationBar = new ApplicationBar();

			// Adds the savegame menu item.
			ApplicationBar.CreateAndAddMenuItem(SaveGameCommand, "save game");

			// Adds the device info menu item.
			ApplicationBar.CreateAndAddMenuItem(ShowDeviceInfoCommand, "player+device info");

			// Adds the maps menu item.
			ApplicationBar.CreateAndAddButton("appbar.map.treasure.png", ShowMapCommand, "map");

            // Adds the quick save button.
            ApplicationBar.CreateAndAddButton("appbar.save.png", QuickSaveGameCommand, "quick save");
		} 
        private void OnDisplayModeChanged()
        {
            Mode mode = DisplayMode;

            if (mode == Mode.Menu)
            {
                // Clears the app bar.
                ApplicationBar = null;
            }
            else if (mode == Mode.BugReport)
            {
                // Makes the bug report app bar.
                ApplicationBar = new ApplicationBar();
                ApplicationBar.CreateAndAddButton("appbar.email.png", SendBugReportCommand, "send");
                ApplicationBar.CreateAndAddButton("appbar.cancel.png", CancelBugReportCommand, "cancel");
            }
        }