ArcGISRuntimeXamarin.Samples.DisplayDeviceLocation.DisplayDeviceLocation.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 navigation options
            var startButton = new Button(this);
            startButton.Text = "Start";
            startButton.Click += OnStartButtonClicked;

            // Create button to stop navigation
            var stopButton = new Button(this);
            stopButton.Text = "Stop";
            stopButton.Click += OnStopButtonClicked;

            // Add start button to the layout
            layout.AddView(startButton);

            // Add stop button to the layout
            layout.AddView(stopButton);

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

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