Ejemplo n.º 1
0
        private void HandleRequestNavigate(object sender, RequestNavigateEventArgs args)
        {
            _gestureService.SetBusy();

            Process.Start(new ProcessStartInfo(args.Uri.AbsoluteUri));
            args.Handled = true;
        }
Ejemplo n.º 2
0
        public static IObservable <T> ActivateGestures <T>(this IObservable <T> observable)
        {
            if (GestureService == null)
            {
                throw new Exception("GestureService has not been initialised");
            }

            return(observable.Do(x => GestureService.SetBusy()));
        }
Ejemplo n.º 3
0
        public Child2ViewModel(IGestureService gestureService)
        {
            DelayCommand = new RelayCommand(() =>
            {
                gestureService.SetBusy();
                System.Threading.Thread.Sleep(3123);
            });

            _disposable = Disposable.Create(() =>
            {
                DelayCommand = null;
            });
        }