Esempio n. 1
0
        protected override void OnLayout(bool changed, int l, int t, int r, int b)
        {
            int     num1    = r - l;
            int     num2    = b - t;
            Context context = this.Context;

            this._bottomBar.Measure(MeasureSpecFactory.MakeMeasureSpec(num1, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(num2, MeasureSpecMode.AtMost));
            int num3 = Math.Min(num2, Math.Max(this._bottomBar.MeasuredHeight, this._bottomBar.MinimumHeight));

            if (num1 > 0 && num2 > 0)
            {
                this._pageController.ContainerArea = new Rectangle(0.0, 0.0, context.FromPixels((double)num1), context.FromPixels((double)this._frameLayout.MeasuredHeight));
                ObservableCollection <Element> internalChildren = this._pageController.InternalChildren;
                for (int index = 0; index < internalChildren.Count; ++index)
                {
                    VisualElement bindable = internalChildren[index] as VisualElement;
                    if (bindable != null)
                    {
                        NavigationPageRenderer renderer = Xamarin.Forms.Platform.Android.Platform.GetRenderer(bindable) as NavigationPageRenderer;
                    }
                }
                this._bottomBar.Measure(MeasureSpecFactory.MakeMeasureSpec(num1, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(num3, MeasureSpecMode.Exactly));
                this._bottomBar.Layout(0, 0, num1, num3);
            }
            base.OnLayout(changed, l, t, r, b);
        }
Esempio n. 2
0
 public AppCompatNavRendererHelper(NavigationPageRenderer renderer, Context context)
 {
     _renderer = renderer;
     _platform = _platformFieldInfo.GetValue(context as FormsAppCompatActivity);
 }
 public AppCompatNavRendererHelper(NavigationPageRenderer renderer)
 {
     _renderer = renderer;
 }