Example #1
0
        private void OverlayAction(Action <TaskModel> action, TaskModel task)
        {
            PageOverlayTransitionShow.BeginTime = TimeSpan.Zero;
            PageOverlayTransitionShow.Begin();
            EventHandler overlayHandler = null;

            overlayHandler = (s, e) =>
            {
                action(task);
                PageOverlayTransitionHide.Begin();
                PageOverlayTransitionShow.Completed -= overlayHandler;
            };
            PageOverlayTransitionShow.Completed += overlayHandler;
        }
Example #2
0
        private void OverlayAction(Action <TaskModel, DateTime?, GestureAction> action, TaskModel task, DateTime?date, GestureAction gestureAction)
        {
            PageOverlayTransitionShow.BeginTime = TimeSpan.Zero;
            PageOverlayTransitionShow.Begin();
            EventHandler overlayHandler = null;

            overlayHandler = (s, e) =>
            {
                action(task, date, gestureAction);
                PageOverlayTransitionHide.Begin();
                PageOverlayTransitionShow.Completed -= overlayHandler;
            };
            PageOverlayTransitionShow.Completed += overlayHandler;
        }
Example #3
0
        private void OverlayAction(Action action)
        {
            PageOverlayTransitionShow.BeginTime = TimeSpan.FromSeconds(0.25);
            PageOverlayTransitionShow.Begin();
            EventHandler overlayHandler = null;

            overlayHandler = (s, e) =>
            {
                action();
                PageOverlayTransitionHide.Begin();
                PageOverlayTransitionShow.Completed -= overlayHandler;
            };
            PageOverlayTransitionShow.Completed += overlayHandler;
        }