ArcGISRuntimeXamarin.Samples.DisplayLayerViewState.DisplayLayerViewState.CreateLayout C# (CSharp) 메소드

CreateLayout() 개인적인 메소드

private CreateLayout ( ) : void
리턴 void
        private void CreateLayout()
        {
            nfloat height = 80;

            //set up UIStackView for laying out controls
            var stackView = new UIStackView(new CoreGraphics.CGRect(0, 0, View.Bounds.Width, View.Bounds.Height));
            stackView.Axis = UILayoutConstraintAxis.Vertical;
            stackView.Alignment = UIStackViewAlignment.Fill;
            stackView.Distribution = UIStackViewDistribution.FillProportionally;
            stackView.BackgroundColor = UIColor.Gray;

            // Setup the visual frame for the MapView
            _myMapView = new MapView()
            {
                Frame = new CoreGraphics.CGRect(0, 0, View.Bounds.Width, View.Bounds.Height-80)
            };

            stackView.AddArrangedSubview(_myMapView);

            // Create a tableview for displaying layer view status for each layer
            _tableView = new UITableView(new CoreGraphics.CGRect(0, _myMapView.Frame.Height, View.Bounds.Width, height));
            stackView.AddArrangedSubview(_tableView);

            // Add MapView to the page
            View.AddSubviews(stackView);
        }
    }