示例#1
0
            void UpdateBackgroundColor()
            {
                Color modalBkgndColor = _modal.BackgroundColor;

                if (modalBkgndColor.IsDefault)
                {
                    _backgroundView.SetWindowBackground();
                }
                else
                {
                    _backgroundView.SetBackgroundColor(modalBkgndColor.ToAndroid());
                }
            }
示例#2
0
            void UpdateBackgroundColor()
            {
                Color modalBkgndColor = _modal.BackgroundColor;

                if (modalBkgndColor == null)
                {
                    _backgroundView.SetWindowBackground();
                }
                else
                {
                    _backgroundView.SetBackgroundColor(modalBkgndColor.ToNative());
                }
            }
示例#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();
            }