ArcGISRuntimeXamarin.Samples.OpenExistingMap.OpenExistingMap.OnMapsClicked C# (CSharp) 메소드

OnMapsClicked() 개인적인 메소드

private OnMapsClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void
        private void OnMapsClicked(object sender, EventArgs e)
        {
            var mapsButton = sender as Button;

            // Create menu to show map options
            var mapsMenu = new PopupMenu(this, mapsButton);
            mapsMenu.MenuItemClick += OnMapsMenuItemClicked;

            // Create menu options
            foreach (var title in titles)
                mapsMenu.Menu.Add(title);

            // Show menu in the view
            mapsMenu.Show();
        }