public void ShowPopup(int selectedIndex)
        {
            BuildLayoutRoot(selectedIndex);

            //make sure the application bar is not shown while the pop up is active;
            //this prevents users from triggering events that shouldn't be accessible
            HideApplicationBar();

            _popup.Child            = _layoutRoot;
            _popup.VerticalOffset   = VerticalOffset;
            _popup.HorizontalOffset = HorizontalOffset;

            _popup.IsOpen = true;

            Storyboard storyboard = AnimationHelper.CreateEaseInAnimationStoryBoard(_layoutRoot, Grid.OpacityProperty, BACKGROUND_OPACITY_MIN, BACKGROUND_OPACITY_MAX, Duration);

            storyboard.Begin();
        }
示例#2
0
        private void ShowReplyEditPanel(bool forEditing)
        {
            _isEditing = forEditing;
            if (_isEditing)
            {
                replyEditLabel.Text = _localizedStrings.ControlsText.EditComment;
            }
            else
            {
                replyEditLabel.Text = _localizedStrings.ControlsText.ReplyToComment;
            }

            replyEditPanel.Visibility = Visibility.Visible;
            ApplicationBar.IsVisible  = false;

            Storyboard fadeInStoryboard = AnimationHelper.CreateEaseInAnimationStoryBoard(replyEditPanel, Grid.OpacityProperty, 0.0, 0.97, TimeSpan.FromMilliseconds(250));

            fadeInStoryboard.Completed += OnFadeInCommentReplyStoryboardCompleted;
            fadeInStoryboard.Begin();
        }