public PopupDialogContainer(PopupArguments popupArguments) { _popupArguments = popupArguments; _popup = popupArguments.Popup; _popup.CloseRequest += OnCloseRequest; }
public void Show(Page page, PopupArguments args) { args.Popup.Parent = page; var container = new PopupDialogContainer(args); container.Show(); }
public PopupDialogContainer(PopupArguments popupArguments) { this.popupArguments = popupArguments; popup = popupArguments.Popup; popup.CloseRequest += OnCloseRequest; orientationChangeObserver = NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.DidChangeStatusBarOrientationNotification, OrientationChanged); }
public void CloseAll(Page page, PopupArguments args) { //var subviews = UIApplication.SharedApplication.KeyWindow.Subviews.Where(v => v is IVisualElementRenderer).ToList(); //foreach (var subview in subviews) // subview.RemoveFromSuperview(); args.SetResult(true); }
public PopupDialogContainer(PopupArguments popupArguments) { _popupArguments = popupArguments; _popup = popupArguments.Popup; _dialog = new Dialog(Forms.Context); _dialog.RequestWindowFeature((int)WindowFeatures.NoTitle); _popup.CloseRequest += OnCloseRequest; }