void UpdateBackgroundColor() { Color modalBkgndColor = _modal.BackgroundColor; if (modalBkgndColor.IsDefault) { _backgroundView.SetWindowBackground(); } else { _backgroundView.SetBackgroundColor(modalBkgndColor.ToAndroid()); } }
void UpdateBackgroundColor() { Color modalBkgndColor = _modal.BackgroundColor; if (modalBkgndColor == null) { _backgroundView.SetWindowBackground(); } else { _backgroundView.SetBackgroundColor(modalBkgndColor.ToNative()); } }
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(); }