Example #1
0
        private void QueryCloseCore(PopupCloseReason closeReason, bool immediate = false)
        {
            if (_popup.StaysOpen)
            {
                return;
            }

            if (_state != State.Open)
            {
                return;
            }

            var args = new PopupCancelEventArgs(closeReason, false);

            OnClosing(args);

            if (args.Cancel)
            {
                return;
            }

            Close(immediate);
        }
Example #2
0
 protected virtual void OnClosing(PopupCancelEventArgs e)
 {
     Closing?.Invoke(this, e);
 }