示例#1
0
        public override void CanClose(Action <bool> callback)
        {
            var dialogHost = DialogHost.GetCurrent(this);

            if (!dialogHost.DialogResult.Equals(DialogResult.Cancel))
            {
                callback(IsComplete);
            }
            else
            {
                base.CanClose(callback);
            }
        }