Пример #1
0
		public PopupDialogContainer(PopupArguments popupArguments)
		{
			_popupArguments = popupArguments;
			_popup = popupArguments.Popup;

			_popup.CloseRequest += OnCloseRequest;
		}
Пример #2
0
        public void Show(Page page, PopupArguments args)
        {
			args.Popup.Parent = page;

			var container = new PopupDialogContainer(args);
			container.Show();
        }
Пример #3
0
        public PopupDialogContainer(PopupArguments popupArguments)
        {
            _popupArguments = popupArguments;
            _popup          = popupArguments.Popup;

            _popup.CloseRequest += OnCloseRequest;
        }
 public PopupDialogContainer(PopupArguments popupArguments)
 {
     this.popupArguments = popupArguments;
     popup = popupArguments.Popup;
     popup.CloseRequest       += OnCloseRequest;
     orientationChangeObserver = NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.DidChangeStatusBarOrientationNotification, OrientationChanged);
 }
        public void Show(Page page, PopupArguments args)
        {
            args.Popup.Parent = page;

            var container = new PopupDialogContainer(args);

            container.Show();
        }
Пример #6
0
        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);
        }
Пример #7
0
        public PopupDialogContainer(PopupArguments popupArguments)
        {
            _popupArguments = popupArguments;
            _popup = popupArguments.Popup;

            _dialog = new Dialog(Forms.Context);
            _dialog.RequestWindowFeature((int)WindowFeatures.NoTitle);

            _popup.CloseRequest += OnCloseRequest;
        }
Пример #8
0
        public PopupDialogContainer(PopupArguments popupArguments)
        {
            _popupArguments = popupArguments;
            _popup          = popupArguments.Popup;

            _dialog = new Dialog(Forms.Context);
            _dialog.RequestWindowFeature((int)WindowFeatures.NoTitle);

            _popup.CloseRequest += OnCloseRequest;
        }