Пример #1
0
 public static IDisposable BindPopup(
     this PopupModel model)
 {
     return(BindPopup(
                model,
                Locator.Current.GetService <IPopupController>()));
 }
Пример #2
0
 public static IDisposable BindPopup(
     this PopupModel model,
     IPopupController popupController)
 {
     return(model.Context.CloseCommand
            .SubscribeOn(RxApp.TaskpoolScheduler)
            .ObserveOn(RxApp.MainThreadScheduler)
            .Accept(_ =>
     {
         popupController.Hide();
     }));
 }