private async void Popup_BackAction() { Task.Factory.StartNew(async() => { await Task.Delay(DelayBeforeCommandExecution); BackCommand?.Invoke(); }); await Background.Hide(); Dispose(); }