Пример #1
0
        public override void ViewDidLayoutSubviews()
        {
            base.ViewDidLayoutSubviews( );

            BlockerView.SetBounds(MainPanel.Bounds.ToRectF( ));

            BackgroundPanel.Bounds         = View.Bounds;
            BackgroundPanel.Layer.Position = View.Layer.Position;

            // setup the scroll view and contents
            ScrollView.Bounds = MainPanel.Bounds;

            // layout the active view
            SearchPanel.ViewDidLayoutSubviews(MainPanel.Bounds);
            PeoplePanel.ViewDidLayoutSubviews(MainPanel.Bounds);

            CloseButton.Layer.Position = new CGPoint(MainPanel.Bounds.Width - CloseButton.Bounds.Width - 10, 5);

            nfloat scrollSize = Math.Max((float)ActivePanel.GetRootView( ).Frame.Bottom, (float)MainPanel.Bounds.Height) * 1.05f;

            ScrollView.ContentSize = new CGSize(MainPanel.Bounds.Width, scrollSize);
        }