private void Initialize()
{
// Show a plain gray map in the map view
MyMapView.Map = new Map(Basemap.CreateLightGrayCanvas());
// Fill the basemap combo box with basemap names
BasemapListBox.ItemsSource = _basemapNames;
// Select the first basemap in the list by default
BasemapListBox.SelectedIndex = 0;
// Fill the operational layers list box with layer names
OperationalLayerListBox.ItemsSource = _operationalLayerUrls;
// Show the OAuth settings in the page
ClientIdTextBox.Text = AppClientId;
RedirectUrlTextBox.Text = OAuthRedirectUrl;
// Update the extent labels whenever the view point (extent) changes
MyMapView.ViewpointChanged += (s, evt) => UpdateViewExtentLabels();
}