ArcGISRuntimeXamarin.Samples.ChangeSublayerVisibility.ChangeSublayerVisibility.CreateLayout C# (CSharp) Метод

CreateLayout() приватный Метод

private CreateLayout ( ) : void
Результат void
        private void CreateLayout()
        {
            // Create a new vertical layout for the app
            var layout = new LinearLayout(this) { Orientation = Orientation.Vertical };

            // Create button to show possible map options
            var mapsButton = new Button(this);
            mapsButton.Text = "Sublayers";
            mapsButton.Click += OnSublayersClicked;

            // Add maps button to the layout
            layout.AddView(mapsButton);

            // Add the map view to the layout
            layout.AddView(_myMapView);

            // Show the layout in the app
            SetContentView(layout);
        }
    }