public ContentDialogClosingDeferral GetDeferral()
        {
            if (_deferralManager == null)
            {
                _deferralManager            = new DeferralManager <ContentDialogClosingDeferral>(h => new ContentDialogClosingDeferral(h));
                _deferralManager.Completed += (s, e) => _complete(this);
            }

            return(_deferralManager.GetDeferral());
        }
Esempio n. 2
0
        public ContentDialogClosingDeferral GetDeferral()
        {
            _deferralManager = _deferralManager ?? new DeferralManager <ContentDialogClosingDeferral>(() => _complete(this));

            return(_deferralManager.GetDeferral());
        }