public void Hide()
        {
            Storyboard storyboard = AnimationHelper.CreateEaseOutAnimationStoryBoard(LayoutRoot, Grid.OpacityProperty, BACKGROUND_OPACITY_MAX, BACKGROUND_OPACITY_MIN, DEFAULT_DURATION);

            storyboard.Completed += OnEaseOutStoryboardCompleted;
            storyboard.Begin();
        }
Ejemplo n.º 2
0
        private void HideReplyEditPanel()
        {
            Storyboard fadeOutStoryboard = AnimationHelper.CreateEaseOutAnimationStoryBoard(replyEditPanel, Grid.OpacityProperty, 0.97, 0, TimeSpan.FromMilliseconds(250));

            fadeOutStoryboard.BeginTime  = TimeSpan.FromMilliseconds(250);
            fadeOutStoryboard.Completed += OnFadeOutStoryboardCompleted;
            fadeOutStoryboard.Begin();
        }
        public void HidePopup()
        {
            Storyboard storyboard = AnimationHelper.CreateEaseOutAnimationStoryBoard(_layoutRoot, Grid.OpacityProperty, BACKGROUND_OPACITY_MAX, BACKGROUND_OPACITY_MIN, Duration);

            storyboard.Completed += OnEaseOutStoryboardCompleted;

            //delaying the begin time lets the user see what was picked prior
            //to kicking off the hide animation
            storyboard.BeginTime = DEFAULT_DURATION;
            storyboard.Begin();
        }