/// <summary> /// Returns the top modal from the current modal stack. /// </summary> /// <returns>An observable that signals the top modal view model.</returns> public IObservable <IViewModel> TopModal() => ModalSubject.FirstAsync().Select(x => x[x.Count - 1]);