Example #1
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (_detailViewModel != null)
            {
                _detailViewModel.Task = _task;
            }

            MessagingCenter.Subscribe <DetailViewModel, bool>(this, AppSettings.Animation, (sender, arg) =>
            {
                var popup = arg;

                if (popup)
                {
                    Popup.Animate(new FadeToAnimation {
                        Opacity = 1
                    });
                }
                else
                {
                    Popup.Animate(new FadeToAnimation {
                        Opacity = 0
                    });
                }
            });
        }