ArcGISRuntime.WPF.Samples.OpenExistingMap.OpenExistingMap.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( ) : void
return void
        private void Initialize()
        {
            // Set titles as a items source
            mapsChooser.ItemsSource = _titles;
            
            // Select the first option in the map titles. 
            mapsChooser.SelectedIndex = 0;

            // Create a new Map instance with url of the webmap that is displayed by default
            Map myMap = new Map(new Uri(_itemURLs[0]));

            // Provide used Map to the MapView
            MyMapView.Map = myMap;
        }