private void CreateLayout()
        {
            // Create the progress indicator.
            _progressIndicator = new LoadingOverlay(View.Frame);

            // Create the download button.
            _downloadButton = new UIButton();
            _downloadButton.SetTitle("Download Area", UIControlState.Normal);
            _downloadButton.SetTitleColor(UIColor.Blue, UIControlState.Normal);

            // Create the delete button.
            _deleteButton = new UIButton();
            _deleteButton.SetTitle("Delete all areas", UIControlState.Normal);
            _deleteButton.SetTitleColor(UIColor.Red, UIControlState.Normal);

            // Create the toolbar that will be used to contain the buttons.
            _toolbarTray = new UIToolbar();

            // Add the MapView to the page
            View.AddSubviews(_myMapView, _toolbarTray, _downloadButton, _deleteButton, _initialPrompt);

            // Subscribe to the delete button click event.
            //     Note: download button event is handled in Initialize.
            _deleteButton.TouchUpInside += OnDeleteAllMapAreasClicked;
        }
        private void CreateLayout()
        {
            _progressIndicator = new LoadingOverlay(View.Bounds);

            // Create the download button.
            _downloadButton.SetTitle("Download area", UIControlState.Normal);
            _downloadButton.SetTitleColor(View.TintColor, UIControlState.Normal);

            // Configure the delete button.
            _deleteButton.SetTitle("Delete all areas", UIControlState.Normal);
            _deleteButton.SetTitleColor(UIColor.Red, UIControlState.Normal);

            // Add the MapView to the page
            View.AddSubviews(_myMapView, _toolbarTray, _downloadButton, _deleteButton, _initialPrompt);

            // Subscribe to the delete button click event.
            //     Note: download button event is handled in Initialize.
            _deleteButton.TouchUpInside += OnDeleteAllMapAreasClicked;
        }