Exemplo n.º 1
0
            void UpdateBackgroundColor()
            {
                Color modalBkgndColor = _modal.BackgroundColor;

                if (modalBkgndColor.IsDefault)
                {
                    _backgroundView.SetWindowBackground();
                }
                else
                {
                    _backgroundView.SetBackgroundColor(modalBkgndColor.ToAndroid());
                }
            }
Exemplo n.º 2
0
            void UpdateBackgroundColor()
            {
                Color modalBkgndColor = _modal.BackgroundColor;

                if (modalBkgndColor == null)
                {
                    _backgroundView.SetWindowBackground();
                }
                else
                {
                    _backgroundView.SetBackgroundColor(modalBkgndColor.ToNative());
                }
            }
Exemplo n.º 3
0
            public ModalContainer(Context context, Page modal) : base(context)
            {
                _modal = modal;

                _backgroundView = new AView(context);
                _backgroundView.SetWindowBackground();
                AddView(_backgroundView);

                _renderer = Android.Platform.CreateRenderer(modal, context);
                Android.Platform.SetRenderer(modal, _renderer);

                AddView(_renderer.View);

                Id = Platform.GenerateViewId();
            }