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

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

private CreateLayout ( ) : void
Результат void
        private void CreateLayout()
        {
            // Setup the visual frame for the MapView
            _myMapView.Frame = new CoreGraphics.CGRect(
                0, yPageOffset, View.Bounds.Width, View.Bounds.Height - yPageOffset);

            // Add a button at the bottom to show viewpoint choices
            UIButton viewpointsButton = new UIButton(UIButtonType.Custom)
            {
                Frame = new CoreGraphics.CGRect(
                    0, View.Bounds.Height - 40, View.Bounds.Width, 40),
                BackgroundColor = UIColor.White
            };

            // Create button to show map options
            viewpointsButton.SetTitle("Viewpoints", UIControlState.Normal);
            viewpointsButton.SetTitleColor(UIColor.Blue, UIControlState.Normal);
            viewpointsButton.TouchUpInside += OnViewpointsButtonTouch;

            // Add MapView to the page
            View.AddSubviews(_myMapView, viewpointsButton);
        }
    }